Everything posted by Animefan8888
-
Solved: Block Rendering
I don't know what your code looks like so the best I can tell you is look at HopperBlock#getStateForPlacement
-
[1.14.4] [SOLVED] How can i override a vanilla function on a Villager?
You can't. Sorta use the PlayerInteractEvent.EntityInteract or PlayerInteractEvent.EntityInteractSpecific. Not sure which one you should use.
-
[1.14.4][SOLVED] drop block inventory on destroy
This can technically return true and have there be no TileEntity at the position. So you should instead Store the TileEntity in a local variable in the method(World#getTileEntity) and check if they are not null then drop all the items.
-
[SOLVED] [1.12.2] NBT writing/reading for List
I wouldn't use a capability for this. I would just save this to a file yourself. For simplicity sake probably a json file like the ops file. But if you really wanted to use a Capability here you would probably attach it to the Player and not use an ArrayList at all. No you don't need an interface. You only need to use an interface if your capability is modifiable. IE can have different implementations. Yes all Capabilities need an IStorage component. You would use NBTTagList.
-
1.12.2 modding assistance
You need to learn Java. What you have there isnt a Forge error. You'd be able to fix it if you knew Java.
-
How would I use dependencies with mutliple versions
Is there a version of this library that uses 4.4.0?
-
Solved: Block Rendering
They must not ever let it have an UP variant when its placed.
-
1.12.2 modding assistance
So potion effects? LivingEntityBase#addPotionEffect
-
[1.14.4] Spawn custom entity from Dispenser
Maybe post an issue on the github for minecraft forge.
-
[1.14.4] Spawn custom entity from Dispenser
Nope it's probably a bug try updating to the most recent version of forge.
-
[1.14.4] Spawn custom entity from Dispenser
Yes? I'm not sure why you brought that up. I was saying that the dispenser behavior might be added/registered before your eggs get registers/initialized. Therefore they don't get added to the behavior.
-
1.12.2 modding assistance
Depends on the effect I guess.
-
Solved: Block Rendering
Only when it is facing down? Have you looked at the block in F3 to make sure the facing property is down? Also could you post a screenshot or elaborate on what you mean by "won't render"?
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
This is correct. This refers to the objects type name. While world refers to the field name.
-
[1.14.4] Spawn custom entity from Dispenser
If it's not working for your own SpawnEggItem(s) then the behaviors are being registered before your Item is created which is a little weird. So you should register one for your self you can look in net.minecraft.dispenser.IDispenseItemBehavior. Its in the init method just look for SpawnEggItem.getEggs() for where it registers the spawn egg behavior.
-
runClient.bat failed
I would've preferred if you had posted them here. Have you deleted everything that has to do with the examplemod?
-
[1.12.1 - 1.12.2] An already working method suddenly stop working out of nowhere
No.
-
[1.14.4][SOLVED] drop block inventory on destroy
All vanilla TileEntities with inventories implement IInventory. Look at the method in question to figure out what it does. You'll notice it all leads back to one method InventoryHelper.dropItems Which takes in a NonNullList<ItemStack> which you can get from your IItemHandler.
-
runClient.bat failed
- [1.14.4] Unsewing Workbench - problem with block texturing/recipe
This is not the appropriate location for recipes anymore. They go in data/modid/recipe.json- 1.12.2 modding assistance
Dont post source code that doesnt belong to you. Yes even the vanilla code. The Items class file.- How to save simple data to World?
What diesieben said above me is very true. You should send a packet telling the server to check the calculation/do it itself. Then save the data and if necessary send it back to the client.- runClient.bat failed
Ok. You've yet to give us any of your files that could be causing the problem.- [1.14.4] Making a Trident like item
I didn't say use handler.handleSpawnObject....- [1.14.4] Making a Trident like item
This is the correct one, but you don't do anything in your handle method. You need to create an instance of your entity populate it with the data and then spawn it in the client world. - [1.14.4] Unsewing Workbench - problem with block texturing/recipe
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.