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

Using the procedure block 'get level of enchantment <enchantment> of <level>' causes a build error #431

Closed
3 tasks done
Someone68 opened this issue Jul 1, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Someone68
Copy link

Issue description

It's as simple as the title says. Using that block causes a build error. I made sure I had all of the required dependencies, it's still giving me the error. This is very annoying since this block is used a lot when making enchantments!

How to reproduce this issue?

  1. Simply create a procedure with the block "get level of enchantment of "
  2. Save your mod element
  3. Boom. Compilation error.

Operating system

Windows

Details

MCreator version: 2023.2
Generator Type: 1.20.1 Fabric Generator

Example workspace

No response

Logs

Executing Gradle task: build
Build info: MCreator 2023.2.24119, fabric-1.20.1, 64-bit, 12053 MB, Windows 11, JVM 17.0.5, JAVA_HOME: C:\Program Files\Pylo\MCreator\jdk, started on: 2023-06-30-17:57:09

Configure project :
Fabric Loom: 1.2.7
Task :compileJava
C:\Users\someone68\MCreatorWorkspaces\prism\src\main\java\net\mcreator\mymod\procedures\GeProcedure.java:48: error: cannot find symbol
_player.displayClientMessage(Component.literal(("Test: " + ((sourceentity instanceof LivingEntity _livEnt ? _livEnt.getMainHandItem() : ItemStack.EMPTY).getEnchantmentLevel(Enchantments.FLAMING_ARROWS)))), false);
^
symbol: method getEnchantmentLevel(Enchantment)
location: class ItemStack
1 error
Task :compileJava FAILED
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileJava'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED
Task completed in 13 seconds

Issue tracker rule checks (please read carefully)

@Someone68 Someone68 added the bug Something isn't working label Jul 1, 2023
@smasher0699
Copy link

I have the same issue

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

2 participants