Everything posted by Draco18s
-
[1.12] BlockContainer wont show block when placed
The reason block container doesn't work is because it overrides getBlockModelType() to make the block invisible.
-
How to spawn structures in underground caves
Well, the problem here is that you blindly pick a block below the surface. If that block isn't air, you don't generate.
-
[1.7.10]Using Dyes
*cough* 1.12 *cough*
-
[1.12] Custom Crafting with OreDictionary?
You just need to tell the oredictionary about your block, vanilla items (like wooden axes) already have oredict recipes.
-
[1.8.9] Stand on moving solid blocks
"Subworlds" is not in the code as anything. It's a notion.
-
[1.12][SOLVED] NullpointerExeption when registering blocks
registry.registerAll( oreSapphire, oreSapphire.setRegistryName(oreSapphire.getRegistryName()) ); This is equal to block.setRegistryName(block.getRegistryName()) and wrong. You should be doing item.setRegistryName(block.getRegistryName())
-
[1.8.9] Stand on moving solid blocks
It doesn't work that way. There's an older mod that does what you're looking for and it uses subworlds (essentially a second World). Worlds don't collide with other Worlds though. And no, I don't know how to do it.
-
[1.12][SOLVED] NullpointerExeption when registering blocks
*cough*
-
How to spawn structures in underground caves
Then look for ONE air block.
-
[1.11.2]GUI to view villager's inventory crashes
Or as I like to think about it, canInteractWithThisEntity If you can't interact, then you can't view, viewing is interaction.
-
[1.11.2] [SOLVED!] How do I do Packets
And specifically, the LivingHurtEvent only runs server-side.
-
[1.11.2] [SOLVED!] How do I do Packets
user action -> entity on server gets awake -> send packet -> packet handler sets the same value on the client entity -> renderer reads the data in the entity when rendering the model
- [1.12] [Solved] Inventory textures not loading
-
[1.12][SOLVED] Some questions about the Capability System
Size isn't important. Capabilities is about compatibility and accessibility.
-
[1.11.2] [SOLVED!] How do I do Packets
Random question: why do uou pass both message (which you use to pull message.awake) and message.id?
-
[1.8] Cannot find my custom biome!
Height had nothing to do with the stated problem. It is X and Z that need to be offset.
-
[1.12] Item texture not working
Dunno then.
-
[1.11.2] [SOLVED!] How do I do Packets
Your packet doesn't do anything when it arrives. void proccessMessage(PacketReturnAwaken message) { try { }catch(Exception e) { Utils.getLogger().catching(e); } } So blank, much void, many noop. Wow. Additionally, your packet doesn't have any way of finding the entity it needs to awaken.
-
[1.12][SOLVED] Some questions about the Capability System
Aaannnddd...The "old"system still exists. Capabilities are the replacements for the massive interface list, implements IPowerUser, IMechanicalPower, IRedPowerConsumer, IInventory, ISidedInventory, IButterworthPillbox, IForestryFishnet, IRotaryBanana.... It isn't a replacement for data storage.
-
[1.12] Item texture not working
If you ACTUALLY register models on the server it will crash, yes.
-
[1.12] Item texture not working
Probably because ModelLoader itself (while in a client package) isn't marked SideOnly, but its parent class is. This means the JVM can find ModelLoader and the server is fine. But! There's no guarantee that that won't change suddenly and unexpectedly in the future. You're safest assuming that client stuff only happens on the client than saying "works for me." Because at some point, it suddenly won't, and you won't know why.
-
Why not override 'equals'?
How equal are item stacks? Item: yes Metadata: maybe (tools vs. dye) Stack size: unlikely (but maybe you do care, eg. recipes) NBT data: sometimes (depends on the item and the NBT tag) Ergo you need more than one way to compare.
-
[1.12] Item texture not working
That has nothing to do with it. Pretend you are the JVM. When you load a class you need to check that the class contains valid code. Ie that every referenced class with its already loaded or can be found and loaded if it is needed. The JVM cannot predict whether or not a given method will execute, so it assumes that all of them will at some point. The JVM scans through your class, finds a reference to a ModelRegistryEvent, attempts to locate this class, and fails to do so.
-
Dynamic JSON recipe output
Probably create a custom IRecipe implementation (you can subclass the existing ones).
-
[1.11.2] [SOLVED!] How do I do Packets
The magic of packets
IPS spam blocked by CleanTalk.