Everything posted by Draco18s
-
[1.12]How to make recipes configurable?
(Client)EasyRegistry for 1.12 now available. Usage is straight forward. There's a separate method for every type of registration you may be interested in performing--block with item, block without item, item, items with IStateMappers, items with custom MeshDefinitions...--(if one's missing its because I haven't needed support for it myself). Note that if you wish to utilize this class, you may, just put it into a different package so it doesn't conflict if our mods are ever loaded side by side. Note that the EasyRegistry is treated as both a proxy and event handler.
-
[1.11.2] Is using RegistryEvent this way ok?
Hold on, let me quote the OP. Wait just one second...
-
Minecraft Sync ?
That's not the only place that 64 is assumed (for reference, that same comment is found in... at least fourteen classes). We also have ItemStackHandler.java, which lacks that comment: @Override public int getSlotLimit(int slot) { return 64; }
-
[1.11.2] Custom Furnace - Last Step, Saving Data Help [SOLVED]
int blockIsActive = (state.getValue(BURNING) ? 1 : 0) << 2;
- Minecraft Sync ?
-
[1.11.2] Custom Furnace - Last Step, Saving Data Help [SOLVED]
Burning: bx0010 (two values, shifted) Facing: bx0011 (four values, unshifted) Hmmm
-
[1.11.2] Custom Furnace - Last Step, Saving Data Help [SOLVED]
Facing is 0-6 Active is 0-1 You can't just add those together. You need to offset one or the other to a free bit.
-
[1.11.2] Custom Furnace - Last Step, Saving Data Help [SOLVED]
You can combine bools and integers in metadata. You just need to bitwise your data together.
-
[1.12] Help with registering entity into game
EntityRegistry.registerModEntity(new ResourceLocation("hi","smile"), Entity303.class, "smile", 200, renderManager, 0, 0, false);
-
Get Absolute Height of Creature
There is no way to know. For example, with squids, if you included the tentacles, would that be while they are close in against each other, or when they're spread out? Both? Animated along with the visuals?
-
[1.12] CTM Textures
That's putting textures in an assets directory. You can load them as a resource pack through code. I haven't done it, so I don't have a lot of information, I know I've seen things about it on the forum, though..
-
[1.10.2] Item durability bug??? Please help.
onArmorTick is common code, Minecraft.getMinecraft() is client-side-only, you can't do this. You have to set up a KeyInputEvent listener and send a packet to the server when the key is pressed. The server then checks to see if the action is valid, and if so, performs the resulting behavior.
-
[1.12.1] Awkward to admit, I can't setup a block
Caused by: java.io.FileNotFoundException: ppextreme:models/item/itemsilverore.json
-
[1.12] Registering item variants / meshes when list of variants is not known?
I have an item that uses NBT to determine what model / texture to use. The NBT values possible are defined by recipes, which are loaded after items. I tried calling ModelBakery.registerItemVariants and ModelLoader.setCustomMeshDefinition on the known result stack when the recipe was created, but it still left me with an untextured item.
-
[1.12.1] Trying to generate a new "Ravine" but Minecraft freeze when generating a new world
GameRegistry.registerWorldGenerator(...)
-
[1.12.1] Trying to generate a new "Ravine" but Minecraft freeze when generating a new world
It's "ravine" with an E. And yes, your problem is the InitMapGenEvent. That is not how you create new map generation features. You need to register them, not forcibly inject them into an event.
-
[1.12]How to make recipes configurable?
If you really want to do it in the single-call format (that is, your main class contains a new Block() line followed by a registerBlock() line) I'm in the process of updating my EasyRegistry class to 1.12, hasn't been pushed to git yet, but should be available in a day or so.
-
[1.12] CTM Textures
You can add resource packs via code.
-
[1.12] Modular Recipes
I would love to have it.
-
[1.12] How to save entity tags?
Use Capabilities instead.
-
Tile Entitie with Inventory and GUI, Change Inventory content on button click
This is SideOnly(CLIENT)
-
[1.12] Help with registering entity into game
Let me put it this way: Where are you calling EntityRegistry.registerModEntity?
-
Tile Entitie with Inventory and GUI, Change Inventory content on button click
Have you checked that the function runs on the server side. That's why you should use break points. Look at what the game is doing, make sure it is correct.
-
Tile Entitie with Inventory and GUI, Change Inventory content on button click
Put a breakpoint there. Does it ever get run?
-
Tile Entitie with Inventory and GUI, Change Inventory content on button click
The only button in your GUI that tells the server to do anything is the last one, TowncenterButtons.PLUS. None of the other buttons send a packet to the server and the server is the one in charge and the only one that can save data.
IPS spam blocked by CleanTalk.