-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
Thanks for the response. I ended up going with this: public class PlayerDeathHandler { @SubscribeEvent public void playerKilled(LivingDeathEvent event) { if (event.getEntity() instanceof Player player) { ItemStack poppetStack = new ItemStack(ModItems.DEATH_PROTECTION_POPPET.get()); if (player.getInventory().contains(poppetStack)) { event.setCanceled(true); player.setHealth(player.getMaxHealth()); for (int i = 0; i < player.getInventory().getContainerSize(); i++) { ItemStack stackInSlot = player.getInventory().getItem(i); if (stackInSlot.getItem() == poppetStack.getItem()) { stackInSlot.shrink(1); if (stackInSlot.isEmpty()) { player.getInventory().setItem(i, ItemStack.EMPTY); } break; } } } } } } It works like a charm, but are there any issues that COULD arise using this? I don't have much experience with Forge, so I'm not sure about the common issues and whatnot.
-
By IcarusAHHHHH · Posted
After a lot of slamming my head against the modpack trying to learn/not wanting to bother anyone I've finally given up and now I am asking for help lol If someone could let me know what's wrong and the steps to fix it I would be grateful Thank you in advance https://mclo.gs/j0LvRva -
Consulting an expert like Captain WebGenesis for recovering lost crypto from fraudsters is essential due to the complexities involved in navigating blockchain transactions. Understanding the intricacies of blockchain technology and the legal aspects of recovering stolen crypto assets requires specialized knowledge and expertise. Captain WebGenesis possesses the skills and resources to delve into the digital footprints left by fraudsters, utilizing advanced technological tools and strategies to trace and recover lost crypto efficiently. By entrusting the recovery process to an expert like Captain WebGenesis, victims can benefit from his in-depth understanding of the complexities of crypto scams and his ability to navigate these challenges effectively.
-
By ARTHNASRTYJWSR46JRST6YJ · Posted
Fixed it, thanks!
-
-
Topics
-
Who's Online (See full list)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.