Jump to content

Removing Vanilla Stuff???


perigrine3

Recommended Posts

I was inspired by the game Farcry Primal to create a Minecraft mod similar to it, mainly only implementing the Stone Age survival concept. However, to do this, some mobs things must be removed because they don't fit in. For example, zombies, creepers, endermen, skeletons, spiders, cave spiders, silverfish, iron weapons, pickaxes, and basically everything else in Minecraft. In other words, I'm attempting to turn Minecraft into another game by adding a mod. 

I'm pretty sure that I have to call EntityJoinWorldEvent to replace entities (from what I've read from modder forums), but I'm not sure how to use it to REMOVE entities. 

Furthermore, I need a way to remove/replace ITEMS in Minecraft, because the stone age didn't have iron weapons (or swords, pickaxes, etc.).

And finally, I need a way to remove villages and structures, although this one I can just suggest that the player turns it off. 

I feel like this is a lot, but I know that other mods have done stuff like this, so therefore it's possible. 

Link to comment
Share on other sites

How would I go about canceling the EntityJoinWorldEvent? Can you give an example of how to format it? 

I was looking here for examples so I could get a basic idea of how to use it and formulate a complete "Event Handler" as I understand it's called (https://www.programcreek.com/java-api-examples/?class=net.minecraftforge.event.entity.EntityJoinWorldEvent&method=setCanceled), but I figure if I can see one designed specifically for my problem, I may have a much better time solving it. 

 

This is what I have so far... 

public class RemoveStuff {

//Removes all entities upon spawning// 
     @SubscribeEvent(priority = EventPriority.HIGHEST)
     public void OnEntitySpawn(EntityJoinWorldEvent event) {
          
          if (event.getEntity() instanceof /*/WHATEVER ENTITY/*/) {
          
          }
                event.setCanceled(boolean true);

     }

Am I close? 

 

Furthermore, how do I call on the item to set it's creative tab to null? Is that what the hashtag is for? To let you know where to specify what said Item/Event is? 

Edited by perigrine3
Link to comment
Share on other sites

1 hour ago, perigrine3 said:

Thank you a lot, but I have another question; what are the # hashtags for? I've seen them a lot in other forums and modding assistance, but I have no clue what they mean? 

It means that the field or method isn't static

Edited by Draco18s
  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Double colons (e.g. SomeClass::SomeMethod) has a similar meaning, but I'll be honest that I haven't seen the distinction clarified for me. Just pointing out that you might see that sometimes too.

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

4 hours ago, perigrine3 said:

This is what I have so far... 


public class RemoveStuff {

//Removes all entities upon spawning// 
     @SubscribeEvent(priority = EventPriority.HIGHEST)
     public void OnEntitySpawn(EntityJoinWorldEvent event) {
          
          if (event.getEntity() instanceof /*/WHATEVER ENTITY/*/) {
          
          }
                event.setCanceled(boolean true);

     }

Am I close? 

 

Your class isn’t annotated with @EventBusSubscriber and your method isn’t static so everything should work, but here’s this just in case.41725BB5-4DE4-43D5-8631-B167988B66E8.jpeg.ff334db72bec7b270c5d27f4f710e32f.jpeg

 

You want the method Event#setCancelled(boolean) which translates to the code event.setCancelled(true/false);

 

Your method should also begin with a lowercase (onEntitySpawn rather than OnEntitySpawn) and probably should be called onEntityJoinWorld because it’s not the same as spawning.

 

 

  • Thanks 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

Alright, that makes sense, and I'm glad that this is working out so well so far. 

Now to move on to disabling the items: 

 
 
 
 
 
 
On 4/21/2019 at 8:22 AM, diesieben07 said:

Hide it from the creative menu (Item#setCreativeTab(null)).

So I assume that the code for this looks like item.setCreativeTab(null), but what I am wondering is how do I get specific items to hide? How do I reference them in a get statement? My first guess would be to use an "if" statement, like the one in my "onEntityJoin" event. Here's what I'm thinking: 

     public void hideCreativeItems(String item) {
          if (item.getItem() instanceof /*/WHATEVER ITEM/*/) {
          }
                item.setCreativeTab(null);
     }

I'm probably wrong about the string part because I'm still unsure as to how to use those. 

Please fix my code as necessary. 

Link to comment
Share on other sites

I'm probably wrong again, but what the heck. Are either of these correct? 

1) 

     @SubscribeEvent
     public void setCreativeTab(IForgeRegistry item) {
          ForgeRegistries.ITEMS.setCreativeTab(null); 
     }

2) 

     @SubscribeEvent
     public Item setCreativeTab(CreativeTabs tab) {
          ForgeRegistries.ITEMS.setCreativeTab(null); 
     }

 

If not, please tell me why not, and if so, please tell me why. 

Also, what are the constants of Items.class? Could you give a link?

Edited by perigrine3
Link to comment
Share on other sites

Neither, because neither method takes a parameter of type Event

Neither, because neither is a startup even method (preInit, Init, postInit)

Neither, because neither method correctly uses the Items registry (which item are you changing?)

The second one also declares a return type that is both unneeded and never returned. 

 

Quote

Also, what are the constants of Items.class?

Items.BREAD, Items.REDSTONE_DUST, Items.CAKE

etc

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Look net.minecraft.item.Items or net.minecraft.forge.ForgeRegistries. Your mod should have something like the first one. The event in the argument is needed to call the method when the event fires. For example, a game wants to spawn a mob, an event fires and calls your method. If you do not have an event in the method, it will not be called. It seems something like that, but I could be wrong.

If I helped you, don't forget like. I'm using a translator, sorry.

Link to comment
Share on other sites

46 minutes ago, perigrine3 said:

Then how would I use the items registry correctly?

Items.BREAD.setCreativeTab(null)

Is the same as

ForgeRegistries.ITEMS.get(new ResourceLocation("minecraft","bread"))

46 minutes ago, perigrine3 said:

Also, I figured it needed to be an event method. So like the event handler I made for repressing entities from spawning?

Yes. Well, probably. You need the right event type. 

49 minutes ago, Torq said:

The event in the argument is needed to call the method when the event fires. For example, a game wants to spawn a mob, an event fires and calls your method. If you do not have an event in the method, it will not be called. It seems something like that, but I could be wrong.

Sort of. The method signature needs to match in order for it to be called. If you don't have an Event type as the only parameter, then no event call will ever invoke your method because the signature would never match. 

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I found an event that should work I think. It would have to activate as soon as the game loads, without crashing it, so I chose "FMLPostInitializationEvent". Now what I'm doing is listing out all of the item's I need to remove. 

However, I also have some blocks to remove. Would I call on them by say "Blocks" instead of "Items"?

Edited by perigrine3
Link to comment
Share on other sites

4 hours ago, perigrine3 said:

However, I also have some blocks to remove. Would I call on them by say "Blocks" instead of "Items"?

Yes

  • Thanks 1

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

//Removes items from Creative Tabs// 
     @SubscribeEvent
     public void setCreativeTab(IForgeRegistry item) {
          ForgeRegistries.ITEMS.setCreativeTab(null); 

          Item.registerItems(FMLPostInitializationEvent event) {
          
/*/Swords/*/ {
          Items.IRON_SWORD.setCreativeTab(null); 
          Items.WOODEN_SWORD.setCreativeTab(null); 
          Items.STONE_SWORD.setCreativeTab(null); 
          Items.DIAMOND_SWORD.setCreativeTab(null); 
          Items.GOLDEN_SWORD.setCreativeTab(null); 
          }

I'm unsure as to how to correctly format this. Can somebody please show me what I'm doing wrong? 

Link to comment
Share on other sites

I don't think I understand it any better than I did before. 

//Removes items from Creative Tabs// 
     @SubscribeEvent
     public void hideFromCreative(FMLPostInitializationEvent event) {
          
/*/Swords/*/ {
          Item.IRON_SWORD.setCreativeTab(null); 
          Item.WOODEN_SWORD.setCreativeTab(null); 
          Item.STONE_SWORD.setCreativeTab(null); 
          Item.DIAMOND_SWORD.setCreativeTab(null); 
          Item.GOLDEN_SWORD.setCreativeTab(null); 
          }

If this is wrong, can someone PLEASE explain in Layman's terms how to fix it and why it is wrong? And can someone please give me an alternate solution? A different way to remove items and blocks from all creative tabs? Even just a way to repress the creative tabs would be fantastic. 

Edited by perigrine3
Link to comment
Share on other sites

6 hours ago, perigrine3 said:

     public void setCreativeTab(IForgeRegistry item) {
          ForgeRegistries.ITEMS.setCreativeTab(null); 

          Item.registerItems(FMLPostInitializationEvent event) {

Why do you have a method inside a method?

 

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

I did but I got rid of that. 

//Removes items from Creative Tabs// 
     @SubscribeEvent
     public void hideFromCreative(FMLPostInitializationEvent event) {
          
/*/Swords/*/ {
          Item.IRON_SWORD.setCreativeTab(null); 
          Item.WOODEN_SWORD.setCreativeTab(null); 
          Item.STONE_SWORD.setCreativeTab(null); 
          Item.DIAMOND_SWORD.setCreativeTab(null); 
          Item.GOLDEN_SWORD.setCreativeTab(null); 
          }

This is what I have now. 

Edited by perigrine3
Link to comment
Share on other sites

1 hour ago, perigrine3 said:

I did but I got rid of that. 


//Removes items from Creative Tabs// 
     @SubscribeEvent
     public void hideFromCreative(FMLPostInitializationEvent event) {
          
/*/Swords/*/ {
          Item.IRON_SWORD.setCreativeTab(null); 
          Item.WOODEN_SWORD.setCreativeTab(null); 
          Item.STONE_SWORD.setCreativeTab(null); 
          Item.DIAMOND_SWORD.setCreativeTab(null); 
          Item.GOLDEN_SWORD.setCreativeTab(null); 
          }

This is what I have now. 

Please post your entire code; that extract of your code won't even compile.

Make sure you have valid event subscribers.

 

Correct me if I'm wrong, but I'm pretty sure FMLPostInitializationEvent is part of the FML lifecycle event thingy, thus it should be annotated with @EventHandler instead.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Link to comment
Share on other sites

It's a lot of code, but here it is: 

public class removeStuff {

//Removes entities upon spawning// 
     //Dragon 
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityDragon) {
          }
                event.setCanceled(true);
     }

     //Wither
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityWither) {
          }
                event.setCanceled(true);
     }

     //Mooshroom
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityMooshroom) {
          }
                event.setCanceled(true);
     }

     //Donkey
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityDonkey) {
          }
                event.setCanceled(true);
     }

     //Pig
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityPig) {
          }
                event.setCanceled(true);
     }

     //Mule
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityMule) {
          }
                event.setCanceled(true);
     }

     //Sheep
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySheep) {
          }
                event.setCanceled(true);
     }

     //ZombieHorse
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityZombieHorse) {
          }
                event.setCanceled(true);
     }

     //Chicken
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityChicken) {
          }
                event.setCanceled(true);
     }

     //Bat
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityBat) {
          }
                event.setCanceled(true);
     }

     //Squid
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySquid) {
          }
                event.setCanceled(true);
     }

     //Cow
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityCow) {
          }
                event.setCanceled(true);
     }

     //Villager
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityVillager) {
          }
                event.setCanceled(true);
     }

     //Horse
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityHorse) {
          }
                event.setCanceled(true);
     }

     //Llama
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityLlama) {
          }
                event.setCanceled(true);
     }

     //SkeletonHorse
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySkeletonHorse) {
          }
                event.setCanceled(true);
     }

     //Parrot
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityParrot) {
          }
                event.setCanceled(true);
     }

     //Wolf
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityWolf) {
          }
                event.setCanceled(true);
     }

     //Rabbit
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityRabbit) {
          }
                event.setCanceled(true);
     }

     //Ocelot
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityOcelot) {
          }
                event.setCanceled(true);
     }

     //Enderman
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityEnderman) {
          }
                event.setCanceled(true);
     }

     //IronGolem
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityIronGolem) {
          }
                event.setCanceled(true);
     }

     //Evoker
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityEvoker) {
          }
                event.setCanceled(true);
     }

     //Skeleton
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySkeleton) {
          }
                event.setCanceled(true);
     }

     //Golem
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityGolem) {
          }
                event.setCanceled(true);
     }

     //Husk
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityHusk) {
          }
                event.setCanceled(true);
     }

     //Shulker
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityShulker) {
          }
                event.setCanceled(true);
     }

     //Zombie
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityZombie) {
          }
                event.setCanceled(true);
     }

     //Spider
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySpider) {
          }
                event.setCanceled(true);
     }

     //Silverfish
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySilverfish) {
          }
                event.setCanceled(true);
     }

     //IllusionIllager
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityIllusionIllager) {
          }
                event.setCanceled(true);
     }

     //PigZombie
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityPigZombie) {
          }
                event.setCanceled(true);
     }

     //WitherSkeleton
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityWitherSkeleton) {
          }
                event.setCanceled(true);
     }

     //Ghast
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityGhast) {
          }
                event.setCanceled(true);
     }

     //Vindicator
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityVindicator) {
          }
                event.setCanceled(true);
     }

     //ZombieVillager
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityZombieVillager) {
          }
                event.setCanceled(true);
     }

     //Snowman
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySnowman) {
          }
                event.setCanceled(true);
     }

     //Witch
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityWitch) {
          }
                event.setCanceled(true);
     }

     //MagmaCube
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityMagmaCube) {
          }
                event.setCanceled(true);
     }

     //SpellcasterIllager
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySpellcasterIllager) {
          }
                event.setCanceled(true);
     }

     //PolarBear
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityPolarBear) {
          }
                event.setCanceled(true);
     }

     //Guardian
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityGuardian) {
          }
                event.setCanceled(true);
     }

     //Vex
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityVex) {
          }
                event.setCanceled(true);
     }

     //Slime
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntitySlime) {
          }
                event.setCanceled(true);
     }

     //Blaze
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityBlaze) {
          }
                event.setCanceled(true);
     }

     //Creeper
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityCreeper) {
          }
                event.setCanceled(true);
     }

     //ElderGuardian
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityElderGuardian) {
          }
                event.setCanceled(true);
     }

     //CaveSpider
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityCaveSpider) {
          }
                event.setCanceled(true);
     }

     //Endermite
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityEndermite) {
          }
                event.setCanceled(true);
     }

     //Stray
     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityStray) {
          }
               event.setCanceled(true);
     }

//Removes items from Creative Tabs// 
     @EventHandler
     public void hideFromCreative(FMLPostInitializationEvent event) {
          
/*/Swords/*/ {
          Item.IRON_SWORD.setCreativeTab(null); 
          Item.WOODEN_SWORD.setCreativeTab(null); 
          Item.STONE_SWORD.setCreativeTab(null); 
          Item.DIAMOND_SWORD.setCreativeTab(null); 
          Item.GOLDEN_SWORD.setCreativeTab(null); 
          }
/*/Axes/*/ {
          Item.IRON_AXE.setCreativeTab(null); 
          Item.WOODEN_AXE.setCreativeTab(null); 
          Item.STONE_AXE.setCreativeTab(null); 
          Item.DIAMOND_AXE.setCreativeTab(null); 
          Item.GOLDEN_AXE.setCreativeTab(null); 
          }
/*/Pickaxes/*/ {
          Item.IRON_PICKAXE.setCreativeTab(null); 
          Item.WOODEN_PICKAXE.setCreativeTab(null); 
          Item.STONE_PICKAXE.setCreativeTab(null); 
          Item.DIAMOND_PICKAXE.setCreativeTab(null); 
          Item.GOLDEN_PICKAXE.setCreativeTab(null); 
          }
/*/Hoes/*/ {
          Item.IRON_HOE.setCreativeTab(null); 
          Item.WOODEN_HOE.setCreativeTab(null); 
          Item.STONE_HOE.setCreativeTab(null); 
          Item.DIAMOND_HOE.setCreativeTab(null); 
          Item.GOLDEN_HOE.setCreativeTab(null); 
          }
/*/Shovels/*/ {
          Item.IRON_SHOVEL.setCreativeTab(null); 
          Item.WOODEN_SHOVEL.setCreativeTab(null); 
          Item.STONE_SHOVEL.setCreativeTab(null); 
          Item.DIAMOND_SHOVEL.setCreativeTab(null); 
          Item.GOLDEN_SHOVEL.setCreativeTab(null); 
          }

/*/Ores and Stuff/*/ {
          Item.IRON_INGOT.setCreativeTab(null); 
          Item.GOLD_INGOT.setCreativeTab(null); 
          Item.EMERALD.setCreativeTab(null); 
          Item.DIAMOND.setCreativeTab(null); 
          Item.COAL.setCreativeTab(null); 
          Item.QUARTZ.setCreativeTab(null); 
          
          }

/*/Items/*/ {
          Item.GOLDEN_RAIL.setCreativeTab(null); 
          Item.DETECTOR_RAIL.setCreativeTab(null); 
          Item.RAIL.setCreativeTab(null); 
          Item.TORCH.setCreativeTab(null); 
          Item.CAKE.setCreativeTab(null); 
          Block.CAKE.setCreativeTab(null); 
          Item.ACTIVATOR_RAIL.setCreativeTab(null); 
          Item.LEVER.setCreativeTab(null); 
          Item.STONE_PRESSURE_PLATE.setCreativeTab(null); 
          Item.WOODEN_PRESSURE_PLATE.setCreativeTab(null); 
          Item.REDSTONE_TORCH.setCreativeTab(null); 
          Item.STONE_BUTTON.setCreativeTab(null); 
          Item.REPEATER.setCreativeTab(null); 
          Item.TRAPDOOR.setCreativeTab(null); 
          Item.IRON_BARS.setCreativeTab(null); 
          Item.GLASS_PANE.setCreativeTab(null); 
          Item.NETHER_WART.setCreativeTab(null); 
          Block.REDSTONE_LAMP.setCreativeTab(null); 
          Item.TRIPWIRE_HOOK.setCreativeTab(null); 
          Item.WOODEN_BUTTON.setCreativeTab(null); 
          Item.LIGHT_WEIGHTED_PRESSURE_PLATE.setCreativeTab(null); 
          Item.HEAVY_WEIGHTED_PRESSURE_PLATE.setCreativeTab(null); 
          Item.COMPARATOR.setCreativeTab(null); 
          Block.DAYLIGHT_DETECTOR.setCreativeTab(null); 
          Item.HOPPER.setCreativeTab(null); 
          Item.STAINED_GLASS_PANE.setCreativeTab(null); 
          Item.IRON_TRAPDOOR.setCreativeTab(null); 
          Item.CARPET.setCreativeTab(null); 
          Item.BANNER.setCreativeTab(null); 
          Item.SPRUCE_DOOR.setCreativeTab(null); 
          Item.BIRCH_DOOR.setCreativeTab(null); 
          Item.JUNGLE_DOOR.setCreativeTab(null); 
          Item.ACACIA_DOOR.setCreativeTab(null); 
          Item.DARK_OAK_DOOR.setCreativeTab(null); 
          Item.WOODEN_DOOR.setCreativeTab(null); 
          Block.END_ROD.setCreativeTab(null); 
          Block.GLASS.setCreativeTab(null); 
          Block.LAPIS_BLOCK.setCreativeTab(null); 
          Block.DISPENSER.setCreativeTab(null); 
          Block.NOTEBLOCK.setCreativeTab(null); 
          Item.BED.setCreativeTab(null); 
          Block.BED.setCreativeTab(null);
          Block.STICKY_PISTON.setCreativeTab(null); 
          Block.PISTON.setCreativeTab(null); 
          Block.WOOL.setCreativeTab(null); 
          Block.GOLD_BLOCK.setCreativeTab(null); 
          Block.IRON_BLOCK.setCreativeTab(null); 
          Block.STONE_SLAB.setCreativeTab(null); 
          Block.DOUBLE_STONE_SLAB.setCreativeTab(null); 
          Block.BRICK_BLOCK.setCreativeTab(null); 
          Block.TNT.setCreativeTab(null); 
          Block.BOOKSHELF.setCreativeTab(null); 
          Block.MOB_SPAWNER.setCreativeTab(null); 
          Block.CHEST.setCreativeTab(null); 
          Block.DIAMOND_BLOCK.setCreativeTab(null); 
          Block.CRAFTING_TABLE.setCreativeTab(null); 
          Block.FURNACE.setCreativeTab(null); 
          Block.STANDING_SIGN.setCreativeTab(null); 
          Item.LADDER.setCreativeTab(null); 
          Block.JUKEBOX.setCreativeTab(null); 
          Item.FENCE.setCreativeTab(null); 
          Block.PUMPKIN.setCreativeTab(null); 
          Block.NETHERRACK.setCreativeTab(null); 
          Block.SOUL_SAND.setCreativeTab(null); 
          Block.GLOWSTONE.setCreativeTab(null); 
          Block.PORTAL.setCreativeTab(null); 
          Block.LIT_PUMPKIN.setCreativeTab(null); 
          Block.STAINED_GLASS.setCreativeTab(null); 
          Block.MONSTER_EGG.setCreativeTab(null); 
          Block.STONEBRICK.setCreativeTab(null); 
          Item.FENCE_GATE.setCreativeTab(null); 
          Block.BRICK_STAIRS.setCreativeTab(null); 
          Block.STONE_BRICK_STAIRS.setCreativeTab(null); 
          Block.NETHER_BRICK.setCreativeTab(null); 
          Block.NETHER_BRICK_STAIRS.setCreativeTab(null); 
          Item.NETHER_BRICK_FENCE.setCreativeTab(null); 
          Block.ENCHANTING_TABLE.setCreativeTab(null); 
          Block.BREWING_STAND.setCreativeTab(null); 
          Block.CAULDRON.setCreativeTab(null); 
          Item.END_PORTAL.setCreativeTab(null); 
          Block.END_PORTAL_FRAME.setCreativeTab(null); 
          Block.END_STONE.setCreativeTab(null); 
          Item.DRAGON_EGG.setCreativeTab(null); 
          Block.REDSTONE_LAMP.setCreativeTab(null); 
          Block.ENDER_CHEST.setCreativeTab(null); 
          Block.EMERALD_BLOCK.setCreativeTab(null); 
          Block.BEACON.setCreativeTab(null); 
          Item.FLOWER_POT.setCreativeTab(null); 
          Item.SKULL.setCreativeTab(null); 
          Block.ANVIL.setCreativeTab(null); 
          Block.TRAPPED_CHEST.setCreativeTab(null); 
          Block.QUARTZ_BLOCK.setCreativeTab(null); 
          Block.QUARTZ_STAIRS.setCreativeTab(null); 
          Block.DROPPER.setCreativeTab(null); 
          Block.STAINED_HARDENED_CLAY.setCreativeTab(null); 
          Block.SLIME.setCreativeTab(null); 
          Block.PRISMARINE.setCreativeTab(null); 
          Block.SEA_LANTERN.setCreativeTab(null); 
          Block.HAY_BLOCK.setCreativeTab(null); 
          Block.HARDENED_CLAY.setCreativeTab(null); 
          Block.COAL_BLOCK.setCreativeTab(null); 
          Item.SPRUCE_FENCE_GATE.setCreativeTab(null); 
          Item.BIRCH_FENCE_GATE.setCreativeTab(null); 
          Item.JUNGLE_FENCE_GATE.setCreativeTab(null); 
          Item.DARK_OAK_FENCE_GATE.setCreativeTab(null); 
          Item.ACACIA_FENCE_GATE.setCreativeTab(null); 
          Item.SPRUCE_FENCE.setCreativeTab(null); 
          Item.BIRCH_FENCE.setCreativeTab(null); 
          Item.JUNGLE_FENCE.setCreativeTab(null); 
          Item.DARK_OAK_FENCE.setCreativeTab(null); 
          Item.ACACIA_FENCE_GATE.setCreativeTab(null); 
          Item.CHORUS_PLANT.setCreativeTab(null); 
          Item.CHORUS_FLOWER.setCreativeTab(null); 
          Block.PURPUR_BLOCK.setCreativeTab(null); 
          Block.PURPUR_PILLAR.setCreativeTab(null); 
          Block.PURPUR_STAIRS.setCreativeTab(null); 
          Block.PURPUR_SLAB.setCreativeTab(null); 
          Block.END_BRICKS.setCreativeTab(null); 
          Block.END_GATEWAY.setCreativeTab(null); 
          Block.OBSERVER.setCreativeTab(null); 
          Block.NETHER_WART_BLOCK.setCreativeTab(null); 
          Block.RED_NETHER_BRICK.setCreativeTab(null); 
          Block.BONE_BLOCK.setCreativeTab(null); 
          Block.WHITE_SHULKER_BOX.setCreativeTab(null); 
          Block.ORANGE_SHULKER_BOX.setCreativeTab(null); 
          Block.MAGENTA_SHULKER_BOX.setCreativeTab(null); 
          Block.LIGHT_BLUE_SHULKER_BOX.setCreativeTab(null); 
          Block.YELLOW_SHULKER_BOX.setCreativeTab(null); 
          Block.LIME_SHULKER_BOX.setCreativeTab(null); 
          Block.PINK_SHULKER_BOX.setCreativeTab(null); 
          Block.GRAY_SHULKER_BOX.setCreativeTab(null); 
          Block.SILVER_SHULKER_BOX.setCreativeTab(null); 
          Block.CYAN_SHULKER_BOX.setCreativeTab(null); 
          Block.PURPLE_SHULKER_BOX.setCreativeTab(null); 
          Block.BLUE_SHULKER_BOX.setCreativeTab(null); 
          Block.BROWN_SHULKER_BOX.setCreativeTab(null); 
          Block.GREEN_SHULKER_BOX.setCreativeTab(null); 
          Block.RED_SHULKER_BOX.setCreativeTab(null); 
          Block.BLACK_SHULKER_BOX.setCreativeTab(null); 
          Block.WHITE_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.ORANGE_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.MAGENTA_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.LIGHT_BLUE_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.YELLOW_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.LIME_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.PINK_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.GRAY_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.LIGHT_GRAY_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.CYAN_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.PURPLE_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.BLUE_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.BROWN_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.GREEN_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.RED_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.BLACK_GLAZED_TERRACOTTA.setCreativeTab(null); 
          Block.CONCRETE.setCreativeTab(null); 
          Block.CONCRETE_POWDER.setCreativeTab(null); 
          Item.FLINT_AND_STEEL.setCreativeTab(null); 
          Item.BOWL.setCreativeTab(null); 
          Item.MUSHROOM_STEW.setCreativeTab(null); 
          Item.GUNPOWDER.setCreativeTab(null); 
          Item.BREAD.setCreativeTab(null); 
          Item.LEATHER_HELMET.setCreativeTab(null); 
          Item.LEATHER_CHESTPLATE.setCreativeTab(null); 
          Item.LEATHER_LEGGINGS.setCreativeTab(null); 
          Item.LEATHER_BOOTS.setCreativeTab(null); 
          Item.IRON_HELMET.setCreativeTab(null); 
          Item.IRON_CHESTPLATE.setCreativeTab(null); 
          Item.IRON_LEGGINGS.setCreativeTab(null); 
          Item.IRON_BOOTS.setCreativeTab(null); 
          Item.GOLD_HELMET.setCreativeTab(null); 
          Item.GOLD_CHESTPLATE.setCreativeTab(null); 
          Item.GOLD_LEGGINGS.setCreativeTab(null); 
          Item.GOLD_BOOTS.setCreativeTab(null); 
          Item.DIAMOND_HELMET.setCreativeTab(null); 
          Item.DIAMOND_CHESTPLATE.setCreativeTab(null); 
          Item.DIAMOND_LEGGINGS.setCreativeTab(null); 
          Item.DIAMOND_BOOTS.setCreativeTab(null); 
          Item.CHAINMAIL_HELMET.setCreativeTab(null); 
          Item.CHAINMAIL_CHESTPLATE.setCreativeTab(null); 
          Item.CHAINMAIL_LEGGINGS.setCreativeTab(null); 
          Item.CHAINMAIL_BOOTS.setCreativeTab(null); 
          Item.FLINT.setCreativeTab(null); 
          Item.RAW_PORKCHOP.setCreativeTab(null); 
          Item.COOKED_PORKCHOP.setCreativeTab(null); 
          Item.PAINTING.setCreativeTab(null); 
          Item.GOLDEN_APPLE.setCreativeTab(null); 
          Item.SIGN.setCreativeTab(null); 
          Item.WOODEN_DOOR.setCreativeTab(null); 
          Item.BUCKET.setCreativeTab(null); 
          Item.WATER_BUCKET.setCreativeTab(null); 
          Item.LAVA_BUCKET.setCreativeTab(null); 
          Item.MINECART.setCreativeTab(null); 
          Item.SADDLE.setCreativeTab(null); 
          Item.IRON_DOOR.setCreativeTab(null); 
          Item.REDSTONE.setCreativeTab(null); 
          Item.BOAT.setCreativeTab(null); 
          Item.LEATHER.setCreativeTab(null); 
          Item.MILK_BUCKET.setCreativeTab(null); 
          Item.BRICK.setCreativeTab(null); 
          Item.CLAY_BALL.setCreativeTab(null); 
          Item.PAPER.setCreativeTab(null); 
          Item.BOOK.setCreativeTab(null); 
          Item.SLIME_BALL.setCreativeTab(null); 
          Item.CHEST_MINECART.setCreativeTab(null); 
          Item.FURNACE_MINECART.setCreativeTab(null); 
          Item.EGG.setCreativeTab(null); 
          Item.COMPASS.setCreativeTab(null); 
          Item.FISHING_ROD.setCreativeTab(null); 
          Item.CLOCK.setCreativeTab(null); 
          Item.GLOWSTONE_DUST.setCreativeTab(null); 
          Item.DYE.setCreativeTab(null); 
          Item.SUGAR.setCreativeTab(null); 
          Item.COOKIE.setCreativeTab(null); 
          Item.MAP.setCreativeTab(null); 
          Item.SHEARS.setCreativeTab(null); 
          Item.PUMPKIN_SEEDS.setCreativeTab(null); 
          Item.BEEF.setCreativeTab(null); 
          Item.COOKED_BEEF.setCreativeTab(null); 
          Item.CHICKEN.setCreativeTab(null); 
          Item.COOKED_CHICKEN.setCreativeTab(null); 
          Item.ROTTEN_FLESH.setCreativeTab(null); 
          Item.ENDER_PEARL.setCreativeTab(null); 
          Item.BLAZE_ROD.setCreativeTab(null); 
          Item.GHAST_TEAR.setCreativeTab(null); 
          Item.GOLD_NUGGET.setCreativeTab(null); 
          Item.POTION.setCreativeTab(null); 
          Item.GLASS_BOTTLE.setCreativeTab(null); 
          Item.SPIDER_EYE.setCreativeTab(null); 
          Item.FERMENTED_SPIDER_EYE.setCreativeTab(null); 
          Item.BLAZE_POWDER.setCreativeTab(null); 
          Item.MAGMA_CREAM.setCreativeTab(null); 
          Item.ENDER_EYE.setCreativeTab(null); 
          Item.SPECKLED_MELON.setCreativeTab(null); 
          Item.SPAWN_EGG.setCreativeTab(null); 
          Item.EXPERIENCE_BOTTLE.setCreativeTab(null); 
          Item.FIRE_CHARGE.setCreativeTab(null); 
          Item.WRITABLE_BOOK.setCreativeTab(null); 
          Item.WRITTEN_BOOK.setCreativeTab(null); 
          Item.ITEM_FRAME.setCreativeTab(null); 
          Item.BAKED_POTATOE.setCreativeTab(null); 
          Item.POISONOUS_POTATOE.setCreativeTab(null); 
          Item.FILLED_MAP.setCreativeTab(null); 
          Item.GOLDEN_CARROT.setCreativeTab(null); 
          Item.CARROT_ON_A_STICK.setCreativeTab(null); 
          Item.NETHER_STAR.setCreativeTab(null); 
          Item.PUMPKIN_PIE.setCreativeTab(null); 
          Item.FIREWORKS.setCreativeTab(null); 
          Item.FIREWORK_CHARGE.setCreativeTab(null); 
          Item.ENCHANTED_BOOK.setCreativeTab(null); 
          Item.NETHERBRICK.setCreativeTab(null); 
          Item.PRISMARINE_SHARD.setCreativeTab(null); 
          Item.TNT_MINECART.setCreativeTab(null); 
          Item.HOPPER_MINECART.setCreativeTab(null); 
          Item.PRISMARINE_CRYSTALS.setCreativeTab(null); 
          Item.RABBIT.setCreativeTab(null); 
          Item.COOKED_RABBIT.setCreativeTab(null); 
          Item.RABBIT_STEW.setCreativeTab(null); 
          Item.RABBIT_FOOT.setCreativeTab(null); 
          Item.RABBIT_HIDE_.setCreativeTab(null); 
          Item.ARMOR_STAND.setCreativeTab(null); 
          Item.IRON_HORSE_ARMOR.setCreativeTab(null); 
          Item.GOLDEN_HORSE_ARMOR.setCreativeTab(null); 
          Item.DIAMOND_HORSE_ARMOR.setCreativeTab(null); 
          Item.NAME_TAG.setCreativeTab(null); 
          Item.COMMAND_BLOCK_MINECART.setCreativeTab(null); 
          Item.MUTTON.setCreativeTab(null); 
          Item.RAW_MUTTON.setCreativeTab(null); 
          Item.POPPED_CHORUS_FRUIT.setCreativeTab(null); 
          Item.BEETROOT.setCreativeTab(null); 
          Item.BEETROOT_SEEDS.setCreativeTab(null); 
          Item.BEETROOT_SUIT.setCreativeTab(null); 
          Item.DRAGON_BREATH.setCreativeTab(null); 
          Item.SPLASH_POTION.setCreativeTab(null); 
          Item.SPECTRAL_ARROW.setCreativeTab(null); 
          Item.TIPPED_ARROW.setCreativeTab(null); 
          Item.LINGERING_POTION.setCreativeTab(null); 
          Item.SHIELD.setCreativeTab(null); 
          Item.ELYTRA.setCreativeTab(null); 
          Item.SPRUCE_BOAT.setCreativeTab(null); 
          Item.BIRCH_BOAT.setCreativeTab(null); 
          Item.JUNGLE_BOAT.setCreativeTab(null); 
          Item.ACACIA_BOAT.setCreativeTab(null); 
          Item.DARK_OAK_BOAT.setCreativeTab(null); 
          Item.TOTEM_OF_UNDYING.setCreativeTab(null); 
          Item.SHULKER_SHELL.setCreativeTab(null); 
          Item.IRON_NUGGET.setCreativeTab(null); 
          Item.KNOWLEDGE_BOOK.setCreativeTab(null); 
          Item.RECORD_13.setCreativeTab(null); 
          Item.RECORD_CAT.setCreativeTab(null); 
          Item.RECORD_BLOCKS.setCreativeTab(null); 
          Item.RECORD_CHIRP.setCreativeTab(null); 
          Item.RECORD_FAR.setCreativeTab(null); 
          Item.RECORD_MALL.setCreativeTab(null); 
          Item.RECORD_MELLOHI.setCreativeTab(null); 
          Item.RECORD_STAL.setCreativeTab(null); 
          Item.RECORD_STRAD.setCreativeTab(null); 
          Item.RECORD_WARD.setCreativeTab(null); 
          Item.RECORD_11.setCreativeTab(null); 
          Item.WAIT.setCreativeTab(null); 
          }

     }

     public void blockStructures(InitMapGenEvent event) {
     // Cancels any structure generation
               event.setCanceled(true);
          }

} 

 

Link to comment
Share on other sites

Damn. Okay. The onEntityJoin methods are all supposed to remove one mob, and I thought the if statement would do just that, so idk what you mean by 

5 minutes ago, diesieben07 said:

they all unconditionally cancel the event

 

I need a way to remove most of the items. Where can I find a list of all of the constants of the Items.class? 

Link to comment
Share on other sites

56 minutes ago, perigrine3 said:

     @SubscribeEvent
     public void onEntityJoin(EntityJoinWorldEvent event) {
          if (event.getEntity() instanceof EntityDragon) {
              //this runs if the if statement is true
          }
          //now we're done with the if statement.

          event.setCanceled(true);
     }

See comments. Now go learn Java.

  • Thanks 1

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

You can just hide every item doing:

for(Item i : ForgeRegistries.ITEMS) {
	if(i.getCreatorModId(new ItemStack(i)).equals("minecraft")) {
				i.setCreativeTab(null);
	}
}

That means for every item in forge, if the item has the modid "minecraft" it will set the item's creative tab to null.

  • Thanks 1
Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • This honestly might just work for you @SubscribeEvent public static void onScreenRender(ScreenEvent.Render.Post event) { final var player = Minecraft.getInstance().player; if(!hasMyEffect(player)) return; // TODO: You provide hasMyEffect float f = Mth.lerp(p_109094_, this.minecraft.player.oSpinningEffectIntensity, this.minecraft.player.spinningEffectIntensity); float f1 = ((Double)this.minecraft.options.screenEffectScale().get()).floatValue(); if(f <= 0F || f1 >= 1F) return; float p_282656_ = ?; final var p_282460_ = event.getGuiGraphics(); int i = p_282460_.guiWidth(); int j = p_282460_.guiHeight(); p_282460_.pose().pushPose(); float f = Mth.lerp(p_282656_, 2.0F, 1.0F); p_282460_.pose().translate((float)i / 2.0F, (float)j / 2.0F, 0.0F); p_282460_.pose().scale(f, f, f); p_282460_.pose().translate((float)(-i) / 2.0F, (float)(-j) / 2.0F, 0.0F); float f1 = 0.2F * p_282656_; float f2 = 0.4F * p_282656_; float f3 = 0.2F * p_282656_; RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.enableBlend(); RenderSystem.blendFuncSeparate(SourceFactor.ONE, DestFactor.ONE, SourceFactor.ONE, DestFactor.ONE); p_282460_.setColor(f1, f2, f3, 1.0F); p_282460_.blit(NAUSEA_LOCATION, 0, 0, -90, 0.0F, 0.0F, i, j, i, j); p_282460_.setColor(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.defaultBlendFunc(); RenderSystem.disableBlend(); RenderSystem.depthMask(true); RenderSystem.enableDepthTest(); p_282460_.pose().popPose(); }   Note: Most of this is directly copied from GameRenderer as you pointed out you found. The only thing you'll have to likely do is update the `oSpinningEffectIntensity` + `spinningEffectIntensity` variables on the player when your effect is applied. Which values should be there? Not 100% sure, might be a game of guess and check, but `handleNetherPortalClient` in LocalPlayer has some hard coded you might be able to start with.
    • Dalam dunia perjudian online yang berkembang pesat, mencari platform yang dapat memberikan kemenangan maksimal dan hasil terbaik adalah impian setiap penjudi. OLXTOTO, dengan bangga, mempersembahkan dirinya sebagai jawaban atas pencarian itu. Sebagai platform terbesar untuk kemenangan maksimal dan hasil optimal, OLXTOTO telah menciptakan gelombang besar di komunitas perjudian online. Satu dari banyak keunggulan yang dimiliki OLXTOTO adalah koleksi permainan yang luas dan beragam. Dari togel hingga slot online, dari live casino hingga permainan kartu klasik, OLXTOTO memiliki sesuatu untuk setiap pemain. Dibangun dengan teknologi terkini dan dikembangkan oleh para ahli industri, setiap permainan di platform ini dirancang untuk memberikan pengalaman yang tak tertandingi bagi para penjudi. Namun, keunggulan OLXTOTO tidak hanya terletak pada variasi permainan yang mereka tawarkan. Mereka juga menonjol karena komitmen mereka terhadap keamanan dan keadilan. Dengan sistem keamanan tingkat tinggi dan proses audit yang ketat, OLXTOTO memastikan bahwa setiap putaran permainan berjalan dengan adil dan transparan. Para pemain dapat merasa aman dan yakin bahwa pengalaman berjudi mereka di OLXTOTO tidak akan terganggu oleh masalah keamanan atau keadilan. Tak hanya itu, OLXTOTO juga terkenal karena layanan pelanggan yang luar biasa. Tim dukungan mereka selalu siap sedia untuk membantu para pemain dengan segala pertanyaan atau masalah yang mereka hadapi. Dengan respon cepat dan solusi yang efisien, OLXTOTO memastikan bahwa pengalaman berjudi para pemain tetap mulus dan menyenangkan. Dengan semua fitur dan keunggulan yang ditawarkannya, tidak mengherankan bahwa OLXTOTO telah menjadi pilihan utama bagi jutaan penjudi online di seluruh dunia. Jika Anda mencari platform yang dapat memberikan kemenangan maksimal dan hasil optimal, tidak perlu mencari lebih jauh dari OLXTOTO. Bergabunglah dengan OLXTOTO hari ini dan mulailah petualangan Anda menuju kemenangan besar dan hasil terbaik!
    • Selamat datang di OLXTOTO, situs slot gacor terpanas yang sedang booming di industri perjudian online. Jika Anda mencari pengalaman bermain yang luar biasa, maka OLXTOTO adalah tempat yang tepat untuk Anda. Dapatkan sensasi tidak biasa dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering. Di sini, Anda akan merasakan keseruan yang luar biasa dalam bermain judi slot. DAFTAR OLXTOTO DISINI LOGIN OLXTOTO DISINI AKUN PRO OLXTOTO DISINI   Jackpot Slot Maxwin Sering Untuk Peluang Besar Di OLXTOTO, kami tidak hanya memberikan hadiah slot biasa, tapi juga memberikan kesempatan kepada pemain untuk memenangkan jackpot slot maxwin yang sering. Dengan demikian, Anda dapat meraih keberuntungan besar dan memenangkan ribuan rupiah sebagai hadiah jackpot slot maxwin kami. Jackpot slot maxwin merupakan peluang besar bagi para pemain judi slot untuk meraih keuntungan yang lebih besar. Dalam permainan kami, Anda tidak harus terpaku pada kemenangan biasa saja. Kami hadir dengan jackpot slot maxwin yang sering, sehingga Anda memiliki peluang yang lebih besar untuk meraih kemenangan besar dengan hadiah yang menggiurkan. Dalam permainan judi slot, pengalaman bermain bukan hanya tentang keseruan dan hiburan semata. Kami memahami bahwa para pemain juga menginginkan kesempatan untuk meraih keberuntungan besar. Oleh karena itu, OLXTOTO hadir dengan jackpot slot maxwin yang sering untuk memberikan peluang besar kepada para pemain kami. Peluang Besar Menang Jackpot Slot Maxwin Peluang menang jackpot slot maxwin di OLXTOTO sangatlah besar. Anda tidak perlu khawatir tentang batasan atau pembatasan dalam meraih jackpot tersebut. Kami ingin memberikan kesempatan kepada semua pemain kami untuk merasakan sensasi menang dalam jumlah yang luar biasa. Jackpot slot maxwin kami dibuka untuk semua pemain judi slot di OLXTOTO. Anda memiliki peluang yang sama dengan pemain lainnya untuk memenangkan hadiah jackpot yang besar. Kami percaya bahwa semua orang memiliki kesempatan untuk meraih keberuntungan besar, dan itulah mengapa kami menyediakan jackpot slot maxwin yang sering untuk memenuhi harapan dan keinginan Anda.   Kesimpulan OLXTOTO adalah situs slot gacor terbaik yang memberikan pengalaman bermain judi slot online yang tak terlupakan. Dengan variasi slot online terlengkap dan peluang memenangkan jackpot slot maxwin yang sering, OLXTOTO menjadi pilihan terbaik bagi para pemain yang mencari kesenangan dan kemenangan besar dalam perjudian online. Di samping itu, OLXTOTO juga menawarkan layanan pelanggan yang ramah dan responsif, siap membantu setiap pemain dalam mengatasi masalah teknis atau pertanyaan seputar perjudian online. Kami menjaga integritas game dan memberikan lingkungan bermain yang adil serta menjalankan kebijakan perlindungan pelanggan yang cermat. Bergabunglah dengan OLXTOTO sekarang dan nikmati pengalaman bermain slot online yang luar biasa. Jadilah bagian dari komunitas perjudian yang mengagumkan ini dan raih kesempatan untuk meraih kemenangan besar. Dapatkan akses mudah dan praktis ke situs OLXTOTO dan rasakan sensasi bermain judi slot yang tak terlupakan.  
    • OLXTOTO: Platform Maxwin dan Gacor Terbesar Sepanjang Masa Di dunia perjudian online yang begitu kompetitif, mencari platform yang dapat memberikan kemenangan maksimal (Maxwin) dan hasil terbaik (Gacor) adalah prioritas bagi para penjudi yang cerdas. Dalam upaya ini, OLXTOTO telah muncul sebagai pemain kunci yang mengubah lanskap perjudian online dengan menawarkan pengalaman tanpa tandingan.     Sejak diluncurkan, OLXTOTO telah menjadi sorotan industri perjudian online. Dikenal sebagai "Platform Maxwin dan Gacor Terbesar Sepanjang Masa", OLXTOTO telah menarik perhatian pemain dari seluruh dunia dengan reputasinya yang solid dan kinerja yang luar biasa. Salah satu fitur utama yang membedakan OLXTOTO dari pesaingnya adalah komitmen mereka untuk memberikan pengalaman berjudi yang unik dan memuaskan. Dengan koleksi game yang luas dan beragam, termasuk togel, slot online, live casino, dan banyak lagi, OLXTOTO menawarkan sesuatu untuk semua orang. Dibangun dengan teknologi terkini dan didukung oleh tim ahli yang berdedikasi, platform ini memastikan bahwa setiap pengalaman berjudi di OLXTOTO tidak hanya menghibur, tetapi juga menguntungkan. Namun, keunggulan OLXTOTO tidak hanya terletak pada permainan yang mereka tawarkan. Mereka juga terkenal karena keamanan dan keadilan yang mereka berikan kepada para pemain mereka. Dengan sistem keamanan tingkat tinggi dan audit rutin yang dilakukan oleh otoritas regulasi independen, para pemain dapat yakin bahwa setiap putaran permainan di OLXTOTO adalah adil dan transparan. Tidak hanya itu, OLXTOTO juga dikenal karena layanan pelanggan yang luar biasa. Dengan tim dukungan yang ramah dan responsif, para pemain dapat yakin bahwa setiap pertanyaan atau masalah mereka akan ditangani dengan cepat dan efisien. Dengan semua fitur dan keunggulan yang ditawarkannya, tidak mengherankan bahwa OLXTOTO telah menjadi platform pilihan bagi para penjudi online yang mencari kemenangan maksimal dan hasil terbaik. Jadi, jika Anda ingin bergabung dengan jutaan pemain yang telah merasakan keajaiban OLXTOTO, jangan ragu untuk mendaftar dan mulai bermain hari ini!  
    • OLXTOTO adalah bandar slot yang terkenal dan terpercaya di Indonesia. Mereka menawarkan berbagai jenis permainan slot yang menarik dan menghibur. Dengan tampilan yang menarik dan grafis yang berkualitas tinggi, pemain akan merasa seperti berada di kasino sungguhan. OLXTOTO juga menyediakan layanan pelanggan yang ramah dan responsif, siap membantu pemain dengan segala pertanyaan atau masalah yang mereka hadapi. Daftar =  https://surkale.me/Olxtotodotcom1
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.