Everything posted by Draco18s
-
[1.12][SOLVED] Some questions about the Capability System
NBT is not relevant, but yes, you will need to save and synchronize just as you always have.
-
[1.12][SOLVED] Some questions about the Capability System
To be compatible with things like hoppers? NBT has nothing to do with anything. IItemStackHandler is also saved to NBT. TileEntities do not operate on NBT at runtime, NBT is for serialization and serialization only.
-
Error when trying to run Minecraft client in Java Eclipse
Nope. I need to update to that method, but I haven't gotten around to it yet.
-
[1.11.2] [SOLVED!] How do I do Packets
You're setting awake on the server. You're expecting the client to render something. You need to tell the client that the data has changed.
-
[1.12][SOLVED] Some questions about the Capability System
I'd use an IItemStackHandler (the capability) in order to provide the capability to "handle items" with a single slot containing a 1-size stack of whatever's stored. Then you store an integer normally that actually tracks how many are stored.
-
Error when trying to run Minecraft client in Java Eclipse
They aren't. The obsolete part is the GameRegistry. They've been deprecated in favor of the Registry<T> events.
-
[SOLVED] How to place an item as a different block?
These are not the same object.
-
Error when trying to run Minecraft client in Java Eclipse
If you don't mind a slightly obsolete method of doing things https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/EasyRegistry.java https://github.com/Draco18s/ReasonableRealism/blob/master/src/main/java/com/draco18s/hardlib/client/ClientEasyRegistry.java These classes are proxy/client proxy. It makes registering blocks and items very similar to how it was done in 1.7 Also note that these lines are just a reference back to the main mod class so that static methods can be used instead.
-
[SOLVED] How to place an item as a different block?
Have you looked at how reeds, doors, cakes, redstone dust, and so on work?
-
Error when trying to run Minecraft client in Java Eclipse
"AL lib: (EE) alc_cleanup" isn't your problem. A clean exit will display that message too. In addition to the above, use a god damn spoiler tag.
-
[1.10.2] Blacklist certain blocks from being broken with an item
I would be more amused if you returned Float.MIN_VALUE (the smallest, positive value representable) instead of 0.
-
Recommended vs latest version rule of thumb
For development? Latest. Recommended is more for players.
-
[1.12] Mod detecting
Also, you should always register all items and blocks, regardless.
-
[1.10.2] Rendering Armor throws NullPointerException
Also, you can use item.getRegistryName() instead "zocrpmod:" + itemName
-
Dealing with overrides
Step 1: Create a new class Step 2: Use the sustitution/override system to replace the vanilla instance with your own instance
-
[1.11.2] EntityThrowable only Renders Partly?
A lot of people post "I have problem" and don't post code or error and expect us to help merely by recognizing a vague description of the problem. So I end up writing a lot of witty retorts.
-
[1.11.2] EntityThrowable only Renders Partly?
Ah, yes, I see the problem. On line 109 in your Render class you perform an illegal action. You should do this:
-
Dealing with overrides
You mean the substitution alias system. That's not override.
-
[1.10.2] Rendering Armor throws NullPointerException
1) GameRegistry.registerItem(item, itemName) is deprecated. That's why it has a line through it, use the new Registry events instead. 2) Minecraft.getMinecraft().getRenderItem().getItemModelMesher()... is bad, use ModelLoader.setCustomModelResourceLocation(...) instead. 3) The error is in getArmorResource of LayerArmorBase which means that you did not correctly override something you needed to.
-
1.12 Custom resource location
Awful, awful, terrible, no good, very bad things. But we can't tell, because you haven't posted all of the code involved. Liiiike your AchievementBookItem class where you declare getModelLocation()
-
How to spawn structures in underground caves
Pretty much all of the non-hills biomes. Plains, forest, birch forest, ice plains... Average ground height is considered to be 63.
-
How to spawn structures in underground caves
Note that 65 is "above ground" for most biomes.
-
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
0,0,0 should be bedrock in the overworld, the nether, and similar dimensions. For other dimensions (without a bedrock floor) it's possible although unlikely to be able to place a block there.
-
[1.12] [RESOLVED] Cannot bind coordinates to tile entity
Let me see if I read this correctly: ItemNBTHelper.getBlockPos(usedMicrophone, "BoxPos").equals(BlockPos.ORIGIN) If the microphone is brand new, then its BoxPos will be the origin, yes? Ok, so I go to link it, I get the current linkage, it is to the ORIGIN, that returns (!(origin)) which is false, and I dump into the else statement: player.sendMessage(new TextComponentString("You have no source bound to the microphone"));
- [1.12] Custom Crafting with OreDictionary?
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.