Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fail to compile on symbol: variable BLOCK_REGISTRY #456

Closed
3 tasks done
TheCrafters001 opened this issue Aug 19, 2023 · 0 comments
Closed
3 tasks done

[Bug] Fail to compile on symbol: variable BLOCK_REGISTRY #456

TheCrafters001 opened this issue Aug 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@TheCrafters001
Copy link

TheCrafters001 commented Aug 19, 2023

Issue description

When I try to write a function that tries to replace a block, but ignore a tag, it causes a compile error.

How to reproduce this issue?

  1. Create a new block
  2. Create new Update Number gamerule
  3. Add Update Tick trigger procedure
  4. Create logic flow as follows:
    image

Operating system

Windows

Details

MCreator Version: 2023.2
Generator: fabric-1.20.1 (Version 1.9.6)

Example workspace

Link to zipped example workspace

Logs

C:\(path)\dummymod\src\main\java\net\mcreator\dummymod\procedures\DummyBlockUpdateTickProcedure.java:45: error: cannot find symbol 
         if ((world.getBlockState(BlockPos.containing(x + 1, y + 0, z + 0))).is(TagKey.create(Registry.BLOCK_REGISTRY, new ResourceLocation("dummymod:dummytag"))) == false) { 
                                                                                                      ^ 
  symbol:   variable BLOCK_REGISTRY 
  location: interface Registry
1 error 
FAILURE: Build failed with an exception. 
* What went wrong: 
Execution failed for task ':compileJava'. 
> Compilation failed; see the compiler error output for details.

Issue tracker rule checks (please read carefully)

@TheCrafters001 TheCrafters001 added the bug Something isn't working label Aug 19, 2023
@TheCrafters001 TheCrafters001 changed the title Fail to compile on symbol: variable BLOCK_REGISTRY [Bug] Fail to compile on symbol: variable BLOCK_REGISTRY Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant