Jump to content

MushMello

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by MushMello

  1. I want to create a block where you can right click with an item and the item then is part of the block (Like an armor stand, but those are entities). Examples of what I try to achieve would be things like sword stands, or 3D shelves, that show the item.
  2. As I happen to know the context of this code, your problem probably lies within your CONFIGURED_FEATURES Registry. While you create it you probably never really register it. The method at the bottom takes care of that and in the official tutorial it is also called in the main class: public TutorialMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); //... Stuff ModConfiguredFeatures.register(modEventBus); //... More Stuff MinecraftForge.EVENT_BUS.register(this); } This called the "register()" Method in the ModConfiguredFeatures class. I can't see your main class but you probably forgot to call it in your constructor
  3. I didn't know about the accesstransformer.cfg, that did it, thanks
  4. Is your firewall blocking it? For me it installs it fine and it tells you about a "connection error"
  5. I want to create my own gamerule, butwhen I check how Minecraft does it, I see that their code is register("doFireTick", GameRules.Category.UPDATES, GameRules.BooleanValue.create(true)) When I look at the source codes of other mods, they use the same method. But as it's a private method I can't access it. Twilight Forest for example uses the code directly: public static final GameRules.Key<GameRules.BooleanValue> ENFORCED_PROGRESSION_RULE = GameRules.register("tfEnforcedProgression", GameRules.Category.UPDATES, GameRules.BooleanValue.create(true)); Source (Line 71) But when I do it, I get the error "The method "create(boolean)" from the type "GameRules.BooleanValue" is not visible How do other creators have access to that private method and what could I do so I finally have my gamerule
  6. Maybe it's your java version: " Found java version 1.8.0_351" 1.19.2 uses Java 17 or later
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.