-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
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] drop block inventory on destroy
Animefan8888 replied to andGarrett's topic in Modder Support
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
Animefan8888 replied to Differentiation's topic in Modder Support
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. -
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
Animefan8888 replied to Nick82285's topic in Modder Support
Is there a version of this library that uses 4.4.0? -
They must not ever let it have an UP variant when its placed.
-
So potion effects? LivingEntityBase#addPotionEffect
-
[1.14.4] Spawn custom entity from Dispenser
Animefan8888 replied to JimiIT92's topic in Modder Support
Maybe post an issue on the github for minecraft forge. -
[1.14.4] Spawn custom entity from Dispenser
Animefan8888 replied to JimiIT92's topic in Modder Support
Nope it's probably a bug try updating to the most recent version of forge. -
[1.14.4] Spawn custom entity from Dispenser
Animefan8888 replied to JimiIT92's topic in Modder Support
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. -
Depends on the effect I guess.
-
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.14.4] Spawn custom entity from Dispenser
Animefan8888 replied to JimiIT92's topic in Modder Support
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. -
I would've preferred if you had posted them here. Have you deleted everything that has to do with the examplemod?
-
[1.14.4][SOLVED] drop block inventory on destroy
Animefan8888 replied to andGarrett's topic in Modder Support
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. -
Dont post source code that doesnt belong to you. Yes even the vanilla code. The Items class file.
-
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.
-
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
Animefan8888 replied to MineModder2000's topic in Modder Support
I didn't say use handler.handleSpawnObject.... -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
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.