-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Yes you did in your y for loop in FindBlock.
-
[1.15.2] AttachCapabilitiesEvent not being fired?
Animefan8888 replied to deerangle's topic in Modder Support
When did you expect it to fire? It fires when a TileEntity is created. And it definitely fires. Also are you wanting to attach it to every TileEntity in the game because if you only want it on your TileEntities that is not how you do it. -
[1.15.2] Whats the replacement for net.minecraft.init?
Animefan8888 replied to VaraHunter8's topic in Modder Support
You should probably learn how. ASM is not supported on this forum. Mainly because there are typically ways to do whatever you want with just the Event System and Reflection. What are you trying to do from an end user perspective. -
[1.15.2] Changing the properties of vanilla items.
Animefan8888 replied to QcDiablo's topic in Modder Support
Reflection is a Java feature we do not teach Java here, Google it. -
Non-Blockstate values in IBlockColor [1.15.1]
Animefan8888 replied to Jipthechip's topic in Modder Support
Which means I was wrong about it being a World instance when you need it to be. -
Non-Blockstate values in IBlockColor [1.15.1]
Animefan8888 replied to Jipthechip's topic in Modder Support
Also it can be null make sure it is not null before you use it. -
Disable blocks, items, ench etc via Mod Config
Animefan8888 replied to DrunkBlood's topic in Modder Support
Well you always register every registry entry. You then use the config settings to prevent or allow the attainment of the Item/Block/Enchantment. -
Non-Blockstate values in IBlockColor [1.15.1]
Animefan8888 replied to Jipthechip's topic in Modder Support
Ah ok I didn't get that from the name, and didn't check either. Either way they still have to check for null. -
Non-Blockstate values in IBlockColor [1.15.1]
Animefan8888 replied to Jipthechip's topic in Modder Support
I'm not sure if this still works, but you might be able to cast the ILightReader to a World(do an instanceof check it can be null). Then if it is use World::getTileEntity and store your colors in the TileEntity. -
Have you tried reading the readme? It has an example project.
-
1.12 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support. For more information read the LTS at the top of the page.
-
[1.15.2] Can't use attackEntityFrom to fully kill player
Animefan8888 replied to ketchup_god's topic in Modder Support
No. Minecraft is a client only class. Use the World inside the Entity. -
[1.15.2] Access tile entity from container
Animefan8888 replied to Budschie's topic in Modder Support
Pass it in via the constructor. Probably instead of the ItemStackHandler. -
How do I add ore to generate in custom block?
Animefan8888 replied to mcDandy's topic in Modder Support
Yes because that is the name of the Enum in the code. The second string is supposed to be "modid:somename" -
[1.15] Get world folder as java.io.File
Animefan8888 replied to KidKoderMod033109's topic in Modder Support
Yes it is. ServerWorld::getSaveHandler and then SaveHandler::getWorldDirectory -
How do I add ore to generate in custom block?
Animefan8888 replied to mcDandy's topic in Modder Support
You call it directly and store it in a public static final field. -
It should be goal.getGoal() Also you cannot iterate and remove an entry. You will get a ConcurrentModificationException. Use an iterator.