-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[1.7.10] How to see what sort of block I placed?
Animefan8888 replied to Viperdream's topic in Modder Support
You have the ability to update them yourself which is always a pleasure. Also there is a BlockState field in the event which contains a Block field. -
Updating to 1.11: File Contents to lowercase
Animefan8888 replied to Tschipp's topic in Modder Support
You could write the program very easily by scanning through the file and grabbing it a character at a time. -
You need to open up your run configurations and remove the arguments. Very simple, you need a block with a TE and the TE needs to return a Energy storage provided by Forge, and you need to make sure it is asking for one of the Forge Energy Capability.
-
Check out the Energy Capability in the forge source and the documentation on Capabilities of the forge docs.
-
[1.10.2/1.11.2] Lava Renders In Custom Boat
Animefan8888 replied to LogicTechCorp's topic in Modder Support
Could you post some code so we have something to go off of? -
Is it an int, or an Integer?
-
You will need to send a packet to sync the Capability.
-
[1.10.2] [Solved] Custom block won't connect to stairs' solid side
Animefan8888 replied to Erfurt's topic in Modder Support
Post your code and the crash report. -
I'm going to say that Minecraft#effectRenderer is not initialized when you are calling the registerParticle method. Try some other ones like init or postInit.
-
Item with Multiple Models managed via NBT and ModelLoader
Animefan8888 replied to kitsushadow's topic in Modder Support
I would say so, that is where it would make the most sense to me, make sure it is after ItemRegistry and during preInit, or in the ModelRegistryEvent. -
[Forge 1.11] How to color item using the same textures?
Animefan8888 replied to lethinh's topic in Modder Support
Says it is crashing, but doesn't provide a crash report. -
Item with Multiple Models managed via NBT and ModelLoader
Animefan8888 replied to kitsushadow's topic in Modder Support
Hopefully I understand it correctly for you (never used it). ModelBakery.registerItemVariants(Items.APPLE, Items.APPLE.getRegistryName(), new ResourceLocation("modid", "fileName")); ModelLoader.setCustomMeshDefinition(Items.APPLE, new ItemMeshDefinition() { @Override public ModelResourceLocation getModelLocation(ItemStack stack) { if (stack.hasTagCompound()) { if (stack.getTagCompound().getBoolean("charged")) { // return new ModelResourceLocation to charged sub type } else { // return new ModelResourceLocation to not charged sub type } } return new ModelResourceLocation(stack.getItem().getRegistryName(), "inventory"); } }); -
You actually need to determine which State from which metadata. Currently you only return the default state in getStateFromMeta. And you always return 0 in getMetaFromState. These are how it saves the blockstate to disk.
-
Item with Multiple Models managed via NBT and ModelLoader
Animefan8888 replied to kitsushadow's topic in Modder Support
Create a new instance of ItemMeshDefinition, and in the one method return the proper ModelResourceLocation for that variant. You have a ItemStack parameter to use to get the NBT from. -
"name": "name" // Initializing and declaring a variable "secondName: ""#name" // Declaring a second variable and giving in the same value as the first using the first.
-
Never worked with Particles, but I have seen the ParticleManager and it has a registry function.
-
In this case Deprecated means do not call, but you can override it.
-
Could you post the console log, and your code for the Item and where you register your model for it.
-
You need to Override Block#getStateFromMeta and Block#getMetaFromState
-
Override Item#shouldCauseReequipAnimation And how do i use it, i'm not sure what to do with the method Only return true when the item, the size, and the metadata changes.
-
Look at the vanilla furnace container and TE for how it does it. TileEntityFurnace#getField, TileEntityFurnace#setField, TileEntityFurnace#getFieldCount and ContainerFurnace#detectAndSendChanges and ContainerFurnace#updateProgressBar.
-
Why Gradle? (Also is There Any Way to Develop Mods Without it)
Animefan8888 replied to Legoboy0109's topic in Modder Support
I would say WiFi, but couldn't be precise without a log. -
Override Item#shouldCauseReequipAnimation
-
Look at RenderEntityItem(RenderEntityItem#doRender, line 89), and then use the RenderPlayerEvent.Pre to render the Item.
-
[SOLVED] set the container item for only select metadata items
Animefan8888 replied to Ocraftyone's topic in Modder Support
If 7 is greater than the metadata then it will be 6 and below for one, and if you return super.getContainerItem you are just going to get null. Then override Item#hasContainerItem and make it return true when there is a container item.