Everything posted by Draco18s
-
[1.12] Get world age in days
The javadoc on that method is wrong. If you follow where it gets its value from you'll find that nothing modulates it down below 24,000. You mean /time set 0? Well...yeah...
-
[1.12] Get world age in days
Sorry, try World.# getWorldTime() I get the two confused sometimes. And yes, it accounts for sleeping.
-
[1.12] Get world age in days
World#getTotalWorldTime() / 24000
-
[1.11.2] Proper Way to Do SubItems Textures Issue
It is preferred, yes. However with build 1.12-14.21.0.2348 the registry events fire after preInit (rather before), so preInit registration still works.
-
[1.11.2] Proper Way to Do SubItems Textures Issue
*cough* item.getRegistryName() already has the mod ID baked in. *cough*
-
[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.
IPS spam blocked by CleanTalk.