Everything posted by Draco18s
-
Flower gen + flowers
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.
- Creating a library mod along with my main mod
-
The method register(K) from the type GameRegistry is not visible
https://en.wikipedia.org/wiki/Rubber_duck_debugging
-
The method register(K) from the type GameRegistry is not visible
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).
-
[1.12.2] Storing properties in TileEntity
If your state is stored by the TE, you need to update the TE's value. SetBlockState only changes the metadata.
-
[1.12.2] Storing properties in TileEntity
By the way, don't extend BlockContainer. It does nothing you want.
-
[SOLVED] [1.12.2] Custom player container cannot be cast to ContainerPlayer
You still need to extend it and deal with it.
-
[SOLVED] [1.12.2] Custom player container cannot be cast to ContainerPlayer
Cough extends PlayerContainer Cough
-
[1.12.2] Storing properties in TileEntity
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
-
IItemHandler Capabilities
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().
-
java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft() [Solved, but I have questions]
- [1.7.10] [Unsolved] How to show hitboxes?
Yes. Go find the code that runs when F3 is pressed.- java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.getMinecraft() [Solved, but I have questions]
I would assume that that question answers itself.- [1.7.10] [Unsolved] How to show hitboxes?
What do you mean "any other way?" That's a really broad question.- [1.12.2] Crafting Recipie Metadata Issues
Uh Items.BED?- [1.12.2] Can't Get Dropped Block Texture to Show - From A Variant Block [SOLVED]
Bingo- [1.12.2] Crafting Recipie Metadata Issues
Blocks.BED does not have an item form.- [1.12.2] Can't Get Dropped Block Texture to Show - From A Variant Block [SOLVED]
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.- Single block with multiple GUI screens
Containers are automatically synced by vanilla.- [1.12.2] Crafting Recipie Metadata Issues
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.- [1.12.2] Crafting Recipie Metadata Issues
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- [1.12.2] Crafting Recipie Metadata Issues
https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/ores/OresBase.java#L342- [1.12.2]Set mouse itemstack in gui
- [1.12.2]Set mouse itemstack in gui
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."- [1.12.2]Set mouse itemstack in gui
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. - [1.7.10] [Unsolved] How to show hitboxes?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.