-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
[SOLVED] Block Texture not showing, also no error log
Animefan8888 replied to JamieEdwards's topic in Modder Support
Do you have a model file for your block? If you are using 1.12.2 you also need to register the model for the ItemBlock. -
Preventing the player from punching/attacking on left click
Animefan8888 replied to Eilux's topic in Modder Support
You must not have read it thoroughly enough. Because you need to make your method static if you use the EventBusSubscriber -
Spawn mobs naturally near/inside my custom structure
Animefan8888 replied to Samaritans's topic in Modder Support
You could use World#findNearestStructure to check if the structure is at the BlockPos passed in. -
Preventing the player from punching/attacking on left click
Animefan8888 replied to Eilux's topic in Modder Support
You never register this event. Read this. -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
Well lets just look at why. Ok all is fine here you check if its type is BLOCK and then check if the block is grass. Good good. Then you immediately cast it to an EntityRayTraceResult even though the type is not ENTITY... WHY? JUST WHY? -
Get path to the minecraft profile folder? [1.14.4]
Animefan8888 replied to Aces4U's topic in Modder Support
It's consistent on the server, I don't know about the client, but it should be. -
[1.14.4] [SOLVED] How to get Recipes with IItemHandler
Animefan8888 replied to TheMikeste1's topic in Modder Support
Create a RecipeWrapper it takes in a IItemHandlerModifiable and it's an IInventory. -
Get path to the minecraft profile folder? [1.14.4]
Animefan8888 replied to Aces4U's topic in Modder Support
On the client Minecraft.getInstance().gameDir; On the server MinecraftServer#getDataDirectory() Which is just new FIle("."); -
[1.12.2] Problem with capability registration
Animefan8888 replied to SaltStation's topic in Modder Support
Does not equal You need to A) Use a lambda that returns a new instance of your Mana class OR B) Mana::new OR C) make a class that extends Callable in which the function returns a new instance of your Mana class. I assume you are using 1.12.2 the register method that takes the parameters Class<T>, IStorage<T>, Class<? extends T> doesn't work anymore. -
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
True, but if you had looked into other instances of ThrowableEntity you would have found that if the Type is BLOCK then you could cast the RayTraceResult to BlockRayTraceResult and then get the Block's position in the world and get it from the World. -
[1.12.2] Problem with capability registration
Animefan8888 replied to SaltStation's topic in Modder Support
Use the register method that wants a Class<T>, CapabilityIStorage<T>, abd a Callable<? extends T> instead of the one that wants two classes. Also post your code, and maybe create your own thread. -
First please don't post code that isn't yours to distribute this includes Minecraft's Source code. Second you haven't said what you are trying to do, or what you have tried.
-
[1.14.4] Making a Trident like item
Animefan8888 replied to MineModder2000's topic in Modder Support
In the onImpact method you have to check to see if the block is passable or not. -
Dont register them in your constructor, do it in the registerData method. Yes of course the entity needs to know that those values exist.
-
Sync it with a packet or the DataManager that entities use.
-
Because you never told it to get called btw. Are you sure that what you tried the first time didn't work? How did you test it?
-
Spawn entities only on the server. We need more than just that snippet of code. Where is it being called from?
-
You'll notice that both your original thread post and the second one are here in this thread. They have been merged.
-
[1.14.4] is there any inbuilt or universal item value
Animefan8888 replied to andGarrett's topic in Modder Support
Nope, which is why I have so much respect for the makers of EE and Project E. The only way to do this is to map all of the raw materials to a value. Then use the crafting/smelting/recipes to combine the emc value. -
Looks like you didnt setup your environment correctly.