Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Draco18s

Members
  • Joined

  • Last visited

Everything posted by Draco18s

  1. Well, what you probably actually want is if(biome == Biomes.FOREST) The code you have now will spawn your flower in any forest: forest, birch forest, tiaga, etc.
  2. This might interest you: https://github.com/Draco18s/ReasonableRealism/blob/master/build.gradle#L96-L121 https://github.com/Draco18s/ReasonableRealism/blob/master/build.gradle#L165-L189 My gradle build tasks handle this for me.
  3. https://en.wikipedia.org/wiki/Rubber_duck_debugging
  4. Yes it did. You just don't know why. The GameRegistry is now private and you need to use the Registry.Register<T> events instead. (Replace <T> with <Block> for blocks, <Item> for items, etc).
  5. If your state is stored by the TE, you need to update the TE's value. SetBlockState only changes the metadata.
  6. By the way, don't extend BlockContainer. It does nothing you want.
  7. You need to add the FACING property to the container, eg: https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockMillstone.java#L48-L51 https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/block/BlockAxel.java#L60-L63
  8. For reference, this: @CapabilityInject(IItemHandler.class) public static Capability<IItemHandler> CAPABILITY_SET1 = null; Is how you define a capability. It's equivalent to CapabilityItemHandler.ITEM_HANDLER_CAPABILITY It is not the implementation thereof. For that, you need a new ItemStackHandler().
  9. Yes. Go find the code that runs when F3 is pressed.
  10. What do you mean "any other way?" That's a really broad question.
  11. Blocks.BED does not have an item form.
  12. This line: https://github.com/HalestormXV/Runic-Sorcery/blob/master/src/main/java/halestormxv/objects/blocks/BlockStones.java#L130 Says to drop the item "Mystic Cobble" While this line: https://github.com/HalestormXV/Runic-Sorcery/blob/master/src/main/java/halestormxv/objects/blocks/BlockStones.java#L123 Says to drop the item "Lupresium Cobble" combine that with this line: https://github.com/HalestormXV/Runic-Sorcery/blob/master/src/main/java/halestormxv/objects/blocks/BlockStones.java#L58 Which sets the item stack of the above item (mystic or lupresium cobble) to have a metadata value. For mystic cobble, this value is 4. You never register a model for Mystic Cobble with metadata 4.
  13. Containers are automatically synced by vanilla.
  14. It's specific to my mod, yes. It's just a metadata value. But rather than using "1" in 14 different places, I use SomeEnum.VALUE.metadata (The enum exists in the library, in case anyone ever wants to make something compatible with my mods, they only need the library's source, not the whole mod). Let me consume my mystical crystal ball which knows all about your error. Ah, yes, you need to fiddle the widget and contortionize the jiggerwat. That'll make it go away.
  15. It's just a variant enum. The .metadata property just maps from that enum value to an integer. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/api/blockproperties/ores/EnumOreType.java
  16. https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/OresBase.java#L342
  17. This is client side only and will absolutely crash a dedicated server: public static EntityPlayer getPlayerClient() { return Minecraft.getMinecraft().player; } This is server side only: public static EntityPlayer getPlayerServer() { return FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerList().getPlayerByUsername(...); } As evidenced by the "get server instance" method name. This code could only ever work single player, which is why it's called "reaching across logical sides."
  18. You're reaching across logical sides here. You can't do this, as as soon as you connect to a dedicated server, it wil. crash (because on the client FMLCommonHandler.instance().getMinecraftServerInstance() will be null). You must use packets for this. The reason it works in creative, is because in creative the server explicitly allows the client to alter their own inventory. In survival, this is expressly forbidden.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.