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

    • Hello. I've been having a problem when launching minecraft forge. It just doesn't open the game, and leaves me with this "(exit code 1)" error. Both regular and optifine versions of minecraft launch just fine, tried both with 1.18.2 and 1.20.1. I can assure that my drivers are updated so that can't be it, and i've tried using Java 17, 18 and 21 to no avail. Even with no mods installed, the thing won't launch. I'll leave the log here, although it's in spanish: https://jmp.sh/s/FPqGBSi30fzKJDt2M1gc My specs are this: Ryzen 3 4100 || Radeon R9 280x || 16gb ram || Windows 10 I'd appreciate any help, thank you in advance.
    • Hey, Me and my friends decided to start up a Server with "a few" mods, the last few days everything went well we used all the items we wanted. Now our Game crashes the moment we touch a Lava Bucket inside our Inventory. It just instantly closes and gives me an "Alc Cleanup"  Crash screen (Using GDLauncher). I honestly dont have a clue how to resolve this error. If anyone could help id really appreciate it, I speak German and Englisch so you can choose whatever you speak more fluently. Thanks in Advance. Plus I dont know how to link my Crash Report help for that would be nice too whoops
    • I hosted a minecraft server and I modded it, and there is always an error on the console which closes the server. If someone knows how to repair it, it would be amazing. Thank you. I paste the crash report down here: ---- Minecraft Crash Report ---- WARNING: coremods are present:   llibrary (llibrary-core-1.0.11-1.12.2.jar)   WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)   AstralCore (astralsorcery-1.12.2-1.10.27.jar)   CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)   SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)   ForgelinPlugin (Forgelin-1.8.4.jar)   midnight (themidnight-0.3.5.jar)   FutureMC (Future-MC-0.2.19.jar)   SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)   Backpacked (backpacked-1.4.3-1.12.2.jar)   LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar) Contact their authors BEFORE contacting forge // There are four lights! Time: 3/28/24 12:17 PM Description: Exception in server tick loop net.minecraftforge.fml.common.LoaderException: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:89)     at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:612)     at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:219)     at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:197)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     at java.lang.reflect.Method.invoke(Method.java:498)     at com.google.common.eventbus.Subscriber.invokeSubscriberMethod(Subscriber.java:91)     at com.google.common.eventbus.Subscriber$SynchronizedSubscriber.invokeSubscriberMethod(Subscriber.java:150)     at com.google.common.eventbus.Subscriber$1.run(Subscriber.java:76)     at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)     at com.google.common.eventbus.Subscriber.dispatchEvent(Subscriber.java:71)     at com.google.common.eventbus.Dispatcher$PerThreadQueuedDispatcher.dispatch(Dispatcher.java:116)     at com.google.common.eventbus.EventBus.post(EventBus.java:217)     at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:136)     at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:595)     at net.minecraftforge.fml.server.FMLServerHandler.beginServerLoading(FMLServerHandler.java:98)     at net.minecraftforge.fml.common.FMLCommonHandler.onServerStart(FMLCommonHandler.java:333)     at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:125)     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:486)     at java.lang.Thread.run(Thread.java:750) Caused by: java.lang.NoClassDefFoundError: net/minecraft/client/multiplayer/WorldClient     at java.lang.Class.getDeclaredMethods0(Native Method)     at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)     at java.lang.Class.privateGetPublicMethods(Class.java:2902)     at java.lang.Class.getMethods(Class.java:1615)     at net.minecraftforge.fml.common.eventhandler.EventBus.register(EventBus.java:82)     at net.minecraftforge.fml.common.AutomaticEventSubscriber.inject(AutomaticEventSubscriber.java:82)     ... 31 more Caused by: java.lang.ClassNotFoundException: net.minecraft.client.multiplayer.WorldClient     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)     at java.lang.ClassLoader.loadClass(ClassLoader.java:418)     at java.lang.ClassLoader.loadClass(ClassLoader.java:351)     ... 37 more Caused by: net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerException: Exception in class transformer net.minecraftforge.fml.common.asm.transformers.SideTransformer@4e558728 from coremod FMLCorePlugin     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:260)     at net.minecraft.launchwrapper.LaunchClassLoader.runTransformers(LaunchClassLoader.java:279)     at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:176)     ... 39 more Caused by: java.lang.RuntimeException: Attempted to load class bsb for invalid side SERVER     at net.minecraftforge.fml.common.asm.transformers.SideTransformer.transform(SideTransformer.java:62)     at net.minecraftforge.fml.common.asm.ASMTransformerWrapper$TransformerWrapper.transform(ASMTransformerWrapper.java:256)     ... 41 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.12.2     Operating System: Linux (amd64) version 5.10.0-28-cloud-amd64     Java Version: 1.8.0_382, Temurin     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Temurin     Memory: 948745536 bytes (904 MB) / 1564999680 bytes (1492 MB) up to 7635730432 bytes (7282 MB)     JVM Flags: 2 total; -Xmx8192M -Xms256M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     FML: MCP 9.42 Powered by Forge 14.23.5.2860 63 mods loaded, 63 mods active     States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored     | State | ID                 | Version                 | Source                                                | Signature                                |     |:----- |:------------------ |:----------------------- |:----------------------------------------------------- |:---------------------------------------- |     | LC    | minecraft          | 1.12.2                  | minecraft.jar                                         | None                                     |     | LC    | mcp                | 9.42                    | minecraft.jar                                         | None                                     |     | LC    | FML                | 8.0.99.99               | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | forge              | 14.23.5.2860            | forge-1.12.2-14.23.5.2860.jar                         | e3c3d50c7c986df74c645c0ac54639741c90a557 |     | LC    | creativecoredummy  | 1.0.0                   | minecraft.jar                                         | None                                     |     | LC    | backpacked         | 1.4.2                   | backpacked-1.4.3-1.12.2.jar                           | None                                     |     | LC    | itemblacklist      | 1.4.3                   | ItemBlacklist-1.4.3.jar                               | None                                     |     | LC    | securitycraft      | v1.9.8                  | [1.12.2] SecurityCraft v1.9.8.jar                     | None                                     |     | LC    | aiimprovements     | 0.0.1.3                 | AIImprovements-1.12-0.0.1b3.jar                       | None                                     |     | LC    | jei                | 4.16.1.301              | jei_1.12.2-4.16.1.301.jar                             | None                                     |     | LC    | appleskin          | 1.0.14                  | AppleSkin-mc1.12-1.0.14.jar                           | None                                     |     | LC    | baubles            | 1.5.2                   | Baubles-1.12-1.5.2.jar                                | None                                     |     | LC    | astralsorcery      | 1.10.27                 | astralsorcery-1.12.2-1.10.27.jar                      | a0f0b759d895c15ceb3e3bcb5f3c2db7c582edf0 |     | LC    | attributefix       | 1.0.12                  | AttributeFix-Forge-1.12.2-1.0.12.jar                  | None                                     |     | LC    | atum               | 2.0.20                  | Atum-1.12.2-2.0.20.jar                                | None                                     |     | LC    | bloodmoon          | 1.5.3                   | Bloodmoon-MC1.12.2-1.5.3.jar                          | d72e0dd57935b3e9476212aea0c0df352dd76291 |     | LC    | forgelin           | 1.8.4                   | Forgelin-1.8.4.jar                                    | None                                     |     | LC    | bountiful          | 2.2.2                   | Bountiful-2.2.2.jar                                   | None                                     |     | LC    | camera             | 1.0.10                  | camera-1.0.10.jar                                     | None                                     |     | LC    | chisel             | MC1.12.2-1.0.2.45       | Chisel-MC1.12.2-1.0.2.45.jar                          | None                                     |     | LC    | collective         | 3.0                     | collective-1.12.2-3.0.jar                             | None                                     |     | LC    | reskillable        | 1.12.2-1.13.0           | Reskillable-1.12.2-1.13.0.jar                         | None                                     |     | LC    | compatskills       | 1.12.2-1.17.0           | CompatSkills-1.12.2-1.17.0.jar                        | None                                     |     | LC    | creativecore       | 1.10.0                  | CreativeCore_v1.10.71_mc1.12.2.jar                    | None                                     |     | LC    | customnpcs         | 1.12                    | CustomNPCs_1.12.2-(05Jul20).jar                       | None                                     |     | LC    | darknesslib        | 1.1.2                   | DarknessLib-1.12.2-1.1.2.jar                          | 220f10d3a93b3ff5fbaa7434cc629d863d6751b9 |     | LC    | dungeonsmod        | @VERSION@               | DungeonsMod-1.12.2-1.0.8.jar                          | None                                     |     | LC    | enhancedvisuals    | 1.3.0                   | EnhancedVisuals_v1.4.4_mc1.12.2.jar                   | None                                     |     | LC    | extrautils2        | 1.0                     | extrautils2-1.12-1.9.9.jar                            | None                                     |     | LC    | futuremc           | 0.2.6                   | Future-MC-0.2.19.jar                                  | None                                     |     | LC    | geckolib3          | 3.0.30                  | geckolib-forge-1.12.2-3.0.31.jar                      | None                                     |     | LC    | gottschcore        | 1.15.1                  | GottschCore-mc1.12.2-f14.23.5.2859-v1.15.1.jar        | None                                     |     | LC    | hardcorerevival    | 1.2.0                   | HardcoreRevival_1.12.2-1.2.0.jar                      | None                                     |     | LC    | waila              | 1.8.26                  | Hwyla-1.8.26-B41_1.12.2.jar                           | None                                     |     | LE    | imsm               | 1.12                    | Instant Massive Structures Mod 1.12.2.jar             | None                                     |     | L     | journeymap         | 1.12.2-5.7.1p2          | journeymap-1.12.2-5.7.1p2.jar                         | None                                     |     | L     | mobsunscreen       | @version@               | mobsunscreen-1.12.2-3.1.5.jar                         | None                                     |     | L     | morpheus           | 1.12.2-3.5.106          | Morpheus-1.12.2-3.5.106.jar                           | None                                     |     | L     | llibrary           | 1.7.20                  | llibrary-1.7.20-1.12.2.jar                            | None                                     |     | L     | mowziesmobs        | 1.5.8                   | mowziesmobs-1.5.8.jar                                 | None                                     |     | L     | nocubessrparmory   | 3.0.0                   | NoCubes_SRP_Combat_Addon_3.0.0.jar                    | None                                     |     | L     | nocubessrpnests    | 3.0.0                   | NoCubes_SRP_Nests_Addon_3.0.0.jar                     | None                                     |     | L     | nocubessrpsurvival | 3.0.0                   | NoCubes_SRP_Survival_Addon_3.0.0.jar                  | None                                     |     | L     | nocubesrptweaks    | V4.1                    | nocubesrptweaks-V4.1.jar                              | None                                     |     | L     | patchouli          | 1.0-23.6                | Patchouli-1.0-23.6.jar                                | None                                     |     | L     | artifacts          | 1.1.2                   | RLArtifacts-1.1.2.jar                                 | None                                     |     | L     | rsgauges           | 1.2.8                   | rsgauges-1.12.2-1.2.8.jar                             | None                                     |     | L     | rustic             | 1.1.7                   | rustic-1.1.7.jar                                      | None                                     |     | L     | silentlib          | 3.0.13                  | SilentLib-1.12.2-3.0.14+168.jar                       | None                                     |     | L     | scalinghealth      | 1.3.37                  | ScalingHealth-1.12.2-1.3.42+147.jar                   | None                                     |     | L     | lteleporters       | 1.12.2-3.0.2            | simpleteleporters-1.12.2-3.0.2.jar                    | None                                     |     | L     | spartanshields     | 1.5.5                   | SpartanShields-1.12.2-1.5.5.jar                       | None                                     |     | L     | spartanweaponry    | 1.5.3                   | SpartanWeaponry-1.12.2-1.5.3.jar                      | None                                     |     | L     | srparasites        | 1.9.18                  | SRParasites-1.12.2v1.9.18.jar                         | None                                     |     | L     | treasure2          | 2.2.0                   | Treasure2-mc1.12.2-f14.23.5.2859-v2.2.1.jar           | None                                     |     | L     | treeharvester      | 4.0                     | treeharvester_1.12.2-4.0.jar                          | None                                     |     | L     | twilightforest     | 3.11.1021               | twilightforest-1.12.2-3.11.1021-universal.jar         | None                                     |     | L     | variedcommodities  | 1.12.2                  | VariedCommodities_1.12.2-(31Mar23).jar                | None                                     |     | L     | voicechat          | 1.12.2-2.4.32           | voicechat-forge-1.12.2-2.4.32.jar                     | None                                     |     | L     | wolfarmor          | 3.8.0                   | WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar | None                                     |     | L     | worldborder        | 2.3                     | worldborder_1.12.2-2.3.jar                            | None                                     |     | L     | midnight           | 0.3.5                   | themidnight-0.3.5.jar                                 | None                                     |     | L     | structurize        | 1.12.2-0.10.277-RELEASE | structurize-1.12.2-0.10.277-RELEASE.jar               | None                                     |     Loaded coremods (and transformers):  llibrary (llibrary-core-1.0.11-1.12.2.jar)   net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer   net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher WolfArmorCore (WolfArmorAndStorage-1.12.2-3.8.0-universal-signed.jar)    AstralCore (astralsorcery-1.12.2-1.10.27.jar)    CreativePatchingLoader (CreativeCore_v1.10.71_mc1.12.2.jar)    SecurityCraftLoadingPlugin ([1.12.2] SecurityCraft v1.9.8.jar)    ForgelinPlugin (Forgelin-1.8.4.jar)    midnight (themidnight-0.3.5.jar)   com.mushroom.midnight.core.transformer.MidnightClassTransformer FutureMC (Future-MC-0.2.19.jar)   thedarkcolour.futuremc.asm.CoreTransformer SpartanWeaponry-MixinLoader (SpartanWeaponry-1.12.2-1.5.3.jar)    Backpacked (backpacked-1.4.3-1.12.2.jar)   com.mrcrayfish.backpacked.asm.BackpackedTransformer LoadingPlugin (Reskillable-1.12.2-1.13.0.jar)   codersafterdark.reskillable.base.asm.ClassTransformer LoadingPlugin (Bloodmoon-MC1.12.2-1.5.3.jar)   lumien.bloodmoon.asm.ClassTransformer     Profiler Position: N/A (disabled)     Is Modded: Definitely; Server brand changed to 'fml,forge'     Type: Dedicated Server (map_server.txt)
    • When i add mods like falling leaves, visuality and kappas shaders, even if i restart Minecraft they dont show up in the mods menu and they dont work
    • Delete the forge-client.toml file in your config folder  
  • Topics

×
×
  • Create New...

Important Information

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