77inthebag
-
Posts
10 -
Joined
-
Last visited
Posts posted by 77inthebag
-
-
I'm trying to check if a mob's death is caused by a player. What is the proper way to do this? I'm planning on using the LivingDeathEvent, but I don't know where to go from there.
-
I am using a custom water bucket. Where in the vanilla code does it allow the normal bucket to be returned?
-
I think the title basically explains my issue. I have a water bucket as a part of a recipe, and I want to be able to return the empty bucket once the item is crafted.
Any ideas on how to do this?
-
I don't understand either. There is only an error parsing when other mods inject the grass loot table. Here is an example log https://pastebin.com/HwKx78rG
-
-
-
-
-
Usually, in 1.12.2, I could easily add seeds through MinecraftForge.addGrassSeed(...), but I am trying to figure out the 1.14 alternative to this. I have tried injecting the Minecraft blocks/grass loottable, but this causes cross mod incompatibility if another mod injects grass as well.
Does anyone have any insight on how I can get seeds dropping from grass again and not have incompatibility?
This is the code I am using to inject. Perhaps there is an error in the way I am doing this.
Spoilerprivate static ResourceLocation grass = new ResourceLocation("minecraft", "blocks/grass");
@SubscribeEvent
public static void onLootLoad(LootTableLoadEvent event)
{if (event.getName().equals(grass))
{
if (Config.grass_drops.get() == true)
event.getTable().addPool(LootPool.builder().addEntry(TableLootEntry.builder(new ResourceLocation(FutureOfUs.MOD_ID, "blocks/grass"))).build());
}
}
[1.14.4] Check if item is in Forge tag
in Modder Support
Posted
Title explains it pretty well. I know how to check vanilla tags. I just don't know the proper way for forge.