Jump to content

perigrine3

Members
  • Posts

    55
  • Joined

  • Last visited

Everything posted by perigrine3

  1. Also, it's just the bottom part of a two-block unit. I'm attempting to recreate the 1.12.2 Cyberware mod for 1.16.5.
  2. I see. Big brain activated. what can i put in place of "fullCube"?
  3. I'm not really sure what I'm doing here, so here's my code: private static final VoxelShape INSIDE = makeCuboidShape(2.0D, 2.0D, 0.0D, 12.0D, 14.0D, 14.0D); protected static final VoxelShape SHAPE = VoxelShapes.combineAndSimplify(VoxelShapes.fullCube(), VoxelShapes.or(makeCuboidShape(0.0D, 2.0D, 0.0D, 2.0D, 14.0D, 16.0D), makeCuboidShape(14.0D, 2.0D, 0.0D, 2.0D, 14.0D, 16.0D), makeCuboidShape(2.0D, 2.0D, 14.0D, 12.0D, 14.0D, 2.0D), makeCuboidShape(0.0D, 0.0D, 0.0D, 16.0D, 2.0D, 16.0D), INSIDE), IBooleanFunction.ONLY_FIRST); @Override public VoxelShape getShape(BlockState state, IBlockReader worldIn, BlockPos pos, ISelectionContext context) { return SHAPE; } For some reason, the block is acting like a whole block.
  4. Is there some segment of code that would allow me to make the player climb walls when beside them?
  5. Not gonna lie, I'm new to this. How would I set up the block states?
  6. I'm trying to make a plant that grows over time, but I am unsure how to do that. In case you are unsure what I mean, I'm talking about stages of growth, like potatoes or carrots (although I'd like it to be shearable, so more like sweet berry bushes). I am also unsure how I am supposed to get it to call on the different textures for each stage.
  7. So I came up with an idea to make a custom golem (by building it with blocks), and so I started looking through the Minecraft code for that part, but then I realized I don't know where I would find that. How would I go about making a new golem?
  8. Ok thank you. are there any alternate ways to go about doing what I'm trying to do?
  9. I think the title was pretty self-explanatory, but just in case, I'm looking to have the Command Block GUI open when a player right-clicks on an entity. I came up with a way, looking at the Command Block GUI class, but it's returning with an error. Thoughts? Here's my code: public boolean rightClickEntity(EntityPlayer entity, EnumHand hand) { super.processInteract(entity, hand); if (entity instanceof EntityPlayer) playerIn.displayGuiCommandBlock((TileEntityCommandBlock)tileentity); } (P.S.: I am really bad with imports so it could just be that because the auto-import setup isn't working for me because for some reason the Minecraft Forge mdk thing isn't uploading and it's being a pain in the a**, so I've been adding the imports manually.)
  10. Is it possible to access some variable that defines the "Air" integer?
  11. Is there a way to change the jump height of a player when in another dimension?
  12. Sorry to bump, but I think it may have been overlooked. I really do need help with this. Thank you!
  13. I'm making a mars mod and I need a way to cause the player to suffocate unless wearing a specific helmet, and a way to make the player jump higher. I'm thinking maybe I can use the InitializationEvent to give the player Jump Boost when entering the new dimension and to take it away when leaving it. I have no idea how to do the suffocation though. Please take note that I am still very new to coding, so please try to explain what your suggestion does IN ENGLISH. P.S.: I have been looking at these mods so I can steal the code to accomplish BOTH of these, but I am having serious difficulty navigating the files to find what I need and isolate it for use in my own mod. If you can help with this, I would greatly appreciate it. Mars Mod: https://www.curseforge.com/minecraft/mc-mods/mars-mod-recreation Moon Mod: https://www.curseforge.com/minecraft/mc-mods/moon-mod Thank you in advance!
  14. This doesn't appear to be working, but I don't know why: //Removes existing recipes// @SubscribeEvent public void removeRecipes(FMLPostInitializationEvent event) { for(IRecipe recipe : ForgeRegistries.RECIPIES && Item item : ForgeRegistries.ITEMS) { if(recipe.getCraftingResult(new ResourceLocation(item)).equals("minecraft")) { IForgeRegistryModifiable.remove(recipe); } } } I don't see why it is wrong. Before, I hadn't put in the && Item item : ForgeRegistries.ITEMS, but now that I have it, ResourceLocation can work correctly, using the getCraftingResult method to get the item, and then connect it with ForgeRegistries, but it doesn't seem to be working. What could it be?
  15. I know what the code does though, just so nobody thinks I have no clue. I just don't know what the modid part is.
  16. But won't that get stuff that ISN'T vanilla too? I mean, I'm probably wrong cuz I'm a noob, but still, just want to check before I use it.
  17. So I found this online (for removing RECIPES): @SubscribeEvent public static void registerRecipes(RegistryEvent.Register<IRecipe> event) { ResourceLocation theButton = new ResourceLocation("minecraft:wooden_button"); IForgeRegistryModifiable modRegistry = (IForgeRegistryModifiable) event.getRegistry(); modRegistry.remove(theButton); } And using your code, nov4e (for removing ITEMS associated with Minecraft): @SubscribeEvent public void hideCreativeItems(FMLPostInitializationEvent event) { for(Item item : ForgeRegistries.ITEMS) { if(item.getCreatorModId(new ItemStack(item)).equals("minecraft")) { item.setCreativeTab(null); } } } I created this: @SubscribeEvent public void removeRecipes(RegistryEvent.Register<IRecipe> event) { for(IRecipe recipe : ForgeRegistries.RECIPIES) { if(recipe.getCreatorModId(new ResourceLocation(recipe)).equals("minecraft")) { modRegistry.remove(recipe); } } } I figured if I made a variable for the recipe, it would work for all of them, especially if I used nov4e's code to make it apply only to items in vanilla Minecraft, but instead of items, recipes. I assumed because both are part of the ForgeRegistries, it could be applied similarly to both. It's very likely that I'm off, but I feel like I can't be TOO far off. I'm still new to coding java and I'm only using prior coding knowledge to guess my way through my problems, but I am trying, and I do understand what a good portion of this code means, it's only some parts I don't understand, and the big words make it difficult.
  18. Could I use that to disable recipes too?
  19. WAIT OMG. I have to put the instanceOf EntityWhatever inside the parentheses of event.getEnity(), don't I?
  20. 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 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?
  21. 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); } }
  22. Yes, that's what I meant. I realized the difference last night. Here's what I have now: @SubscribeEvent public void onClonePlayer(PlayerEvent.Clone event) { if(event.wasDeath) { setDimensionID(-1); } } Is there anything wrong with this? Can I get some alternate suggestions too?
×
×
  • Create New...

Important Information

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