-
Posts
390 -
Joined
-
Last visited
-
Days Won
15
Everything posted by vemerion
-
1.20.1 Appending my custom loot table to a vanilla one
vemerion replied to CowboyNumber4's topic in Modder Support
Best to use Global Loot Modifiers- 1 reply
-
- 1
-
You should save a reference to it before you register it in AddReloadListenerEvent and then you can access that reference from wherever you need it. Here is an example of how Forge itself does it for the LootModifierManager.
-
That completely depends on what your listener is for. For example, the vanilla RecipeManager has a method 'getRecipeFor()' which is used in various places, one of them being the furnace to see if an item can be smelted.
-
You can look at the vanilla subclasses to get an idea of how to implement your PreparableReloadListener.
-
[1.20.4] custome menu causes java.lang.ClassCastException:
vemerion replied to perromercenary00's topic in Modder Support
Looks like you forgot to negate the 'warudo.isClientSide()' predicate -
You can use the 'MissingMappingsEvent' event
-
How to give a specific item layer a specific tint
vemerion replied to Viler_of_cool's topic in Modder Support
You can register an 'ItemColor' in the 'ColorHandlerEvent.Item' event. -
You can look at the places where the method is called to get an idea of what arguments to supply.
-
To create your own data driven system you can extends PreparableReloadListener (or its subclass SimpleJsonResourceReloadListener) and then register it in AddReloadListenerEvent.
-
[1.20.1] Need help with big block's collision box
vemerion replied to Windokk's topic in Modder Support
A block should never be bigger than the standard 16x16x16 size. If you need something bigger than that you should split it into several different blocks (like how tall grass does it). -
The transparent parts of the texture were rendered black.
vemerion replied to EDGW_'s topic in Modder Support
You need to add this field to the model json file of your block "render_type": "minecraft:cutout" or "render_type": "minecraft:translucent" depending on if if those parts are semi-transparent or fully transparent. -
Hmm, I don't see any problems with the code. You could try debugging and put breakpoints in saveNBTData() and loadNBTData() to see make sure that the methods are called and that the code in the methods works as expected.
-
Can you post the code for your capability provider? Also, you can use NbtUtils.writeBlockPos()/readBlockPos() to more easily write/read BlockPos to/from NBT.
-
1.19.4 [1.19.4] My Custom Projectile does not hit entities properly
vemerion replied to RaguRaccoon's topic in Modder Support
The collision in this case is calculated using ProjectileUtil.getHitResult() which uses a slightly different bounding box than the bounding box of the projectile. But that bounding box should be bigger so should not be a problem. Your best bet might be to try and place some breakpoints and step throught the code to try and figure out why the collision does not work. -
You are unlikely to get a reply, since jadend has not been online in almost a year. But you can look at the vanilla Monster class to see how updateSwingTime() should be called.
-
Issue with block entites not rendering correctly
vemerion replied to BlueFFlame's topic in Modder Support
No problem, glad I could help -
Issue with block entites not rendering correctly
vemerion replied to BlueFFlame's topic in Modder Support
Looks like you are missing the blockstate json file for the fabricatormk1. -
Can you post what you tried? Then I can perhaps point you in the right direction