Jump to content

Egietje

Forge Modder
  • Posts

    388
  • Joined

  • Last visited

Everything posted by Egietje

  1. Thanks! It works now
  2. My German is horrible 2, but you can take a look at Discult 'cause he explains it pretty good, and you can (as an extra) take a look at the vanilla code and just read it through and 'learn' how it's done in vanilla
  3. Hello, I wanted to test my mod on a server (just localhost) but when I run/debug the server it crashes My code: https://github.com/Egietje/DeGeweldigeMod The eclipse console: Crash log(txt):
  4. The best tutorial I can find is from HyCraftHD (german but you can copy the code ) but you can also take a look at DiscultGA (not as advanced is Hy but still OK) just look them up at youtube
  5. Doesn't work
  6. Thanks!
  7. I went to d7's comment
  8. When I right-click with my seeds on farm land the game crashes My plant class: package com.Egietje.degeweldigemod.blocks; import java.util.Random; import com.Egietje.degeweldigemod.init.CheeseItems; import net.minecraft.block.BlockCrops; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; public class CheesePlant extends BlockCrops { @Override protected Item getSeed() { return CheeseItems.CHEESE_SEEDS; } @Override protected Item getCrop() { return CheeseItems.CHEESE; } } Block class: package com.Egietje.degeweldigemod.init; import com.Egietje.degeweldigemod.DeGeweldigeMod; import com.Egietje.degeweldigemod.Reference; import com.Egietje.degeweldigemod.blocks.*; import net.minecraft.block.Block; import net.minecraft.block.BlockWorkbench; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.fml.common.registry.GameRegistry; public class CheeseBlocks { public static Block CHEESE_BLOCK; public static Block CHEESE_ORE; public static Block CHEESE_ORE_NETHER; public static Block CHEESE_ORE_END; public static Block QUICK_CHEESE; public static Block COMPLIMENT_MACHINE; public static Block BELGIUM_FLAG; public static Block CHEESE_PLANT; public CheeseBlocks() { init(); register(); } public static void init() { CHEESE_ORE = new CheeseOre().setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(2F); CHEESE_ORE_NETHER = new CheeseOreNether().setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(2F); CHEESE_ORE_END = new CheeseOreEnd().setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(2F); CHEESE_BLOCK = new Block(Material.ROCK).setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(3F); QUICK_CHEESE = new QuickCheese().setHardness(4F); COMPLIMENT_MACHINE = new ComplimentsMachine().setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(3F); BELGIUM_FLAG = new BelgiumFlag().setCreativeTab(DeGeweldigeMod.tabCheeseStuff).setHardness(2F); CHEESE_PLANT = new CheesePlant(); CheeseUtils.setNames(CHEESE_ORE, "cheese_ore"); CheeseUtils.setNames(CHEESE_ORE_NETHER, "cheese_ore_nether"); CheeseUtils.setNames(CHEESE_ORE_END, "cheese_ore_end"); CheeseUtils.setNames(CHEESE_BLOCK, "cheese_block"); CheeseUtils.setNames(QUICK_CHEESE, "quick_cheese"); CheeseUtils.setNames(COMPLIMENT_MACHINE, "compliment_machine"); CheeseUtils.setNames(BELGIUM_FLAG, "belgium_flag"); CheeseUtils.setNames(CHEESE_PLANT, "cheese_plant"); } public void register() { this.registerBlock(CHEESE_ORE); this.registerBlock(CHEESE_ORE_NETHER); this.registerBlock(CHEESE_ORE_END); this.registerBlock(CHEESE_BLOCK); this.registerBlock(QUICK_CHEESE); this.registerBlock(COMPLIMENT_MACHINE); this.registerBlock(BELGIUM_FLAG); this.registerBlock(CHEESE_PLANT); } private void registerBlock(Block block) { GameRegistry.register(block); GameRegistry.register(new ItemBlock(block).setUnlocalizedName(block.getUnlocalizedName()).setRegistryName(block.getRegistryName())); } } Item class: package com.Egietje.degeweldigemod.init; import com.Egietje.degeweldigemod.DeGeweldigeMod; import com.Egietje.degeweldigemod.Reference; import com.Egietje.degeweldigemod.items.*; import com.Egietje.degeweldigemod.items.tools.*; import net.minecraft.init.Blocks; import net.minecraft.init.SoundEvents; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemAxe; import net.minecraft.item.ItemFood; import net.minecraft.item.ItemHoe; import net.minecraft.item.ItemPickaxe; import net.minecraft.item.ItemSeeds; import net.minecraft.item.ItemSpade; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraftforge.common.util.EnumHelper; import net.minecraftforge.fml.common.registry.GameRegistry; public class CheeseItems { public static ToolMaterial cheese_tool_material; public static ArmorMaterial cheese_armor_material; public static Item CHEESE_SWORD; public static Item CHEESE_PICKAXE; public static Item CHEESE_AXE; public static Item CHEESE_SHOVEL; public static Item CHEESE_HOE; public static Item CHEESE_FLY_STICK; public static Item CHEESE_BOW; public static Item CHEESE_HELMET; public static Item CHEESE_CHESTPLATE; public static Item CHEESE_LEGGINGS; public static Item CHEESE_BOOTS; public static Item CHEESE; public static Item CHEESE_COOKED; public static Item BREAD_CHEESE; public static Item CHEESE_APPLE; public static Item CHEESE_BUCKET; public static Item CHEESE_SEEDS; public static Item CHEESE_INGOT; public static Item CHEESE_ARROW; public CheeseItems() { init(); register(); } public static void init() { cheese_tool_material = EnumHelper.addToolMaterial("cheese_tool_material", 2, 1265, 7.0F, 2.5F, 17); cheese_armor_material = EnumHelper.addArmorMaterial("cheese_armor_material", "", 22, new int[] {3, 6, 8, 3}, 17, SoundEvents.BLOCK_SLIME_BREAK, 3); CHEESE_HELMET = new CheeseArmor(cheese_armor_material, EntityEquipmentSlot.HEAD).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_CHESTPLATE = new CheeseArmor(cheese_armor_material, EntityEquipmentSlot.CHEST).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_LEGGINGS = new CheeseArmor(cheese_armor_material, EntityEquipmentSlot.LEGS).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_BOOTS = new CheeseArmor(cheese_armor_material, EntityEquipmentSlot.FEET).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_SWORD = new CheeseSword(cheese_tool_material).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_PICKAXE = new CheesePickaxe(cheese_tool_material).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_AXE = new CheeseAxe(cheese_tool_material).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_SHOVEL = new CheeseSpade(cheese_tool_material).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_HOE = new CheeseHoe(cheese_tool_material).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_FLY_STICK = new CheeseFlyStick().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_BOW = new CheeseBow().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE = new ItemFood(4, 0.8F, false).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_COOKED = new ItemFood(7, 1.3F, true).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); BREAD_CHEESE = new ItemFood(15, 1.7F, true).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_APPLE = new CheeseApple().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_BUCKET = new CheeseBucket().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_SEEDS = new ItemSeeds(CheeseBlocks.CHEESE_PLANT, Blocks.FARMLAND).setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_INGOT = new Item().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CHEESE_ARROW = new CheeseArrow().setCreativeTab(DeGeweldigeMod.tabCheeseStuff); CheeseUtils.setNames(CHEESE, "cheese"); CheeseUtils.setNames(CHEESE_COOKED, "cheese_cooked"); CheeseUtils.setNames(BREAD_CHEESE, "bread_cheese"); CheeseUtils.setNames(CHEESE_APPLE, "cheese_apple"); CheeseUtils.setNames(CHEESE_BUCKET, "cheese_bucket"); CheeseUtils.setNames(CHEESE_SEEDS, "cheese_seeds"); CheeseUtils.setNames(CHEESE_INGOT, "cheese_ingot"); CheeseUtils.setNames(CHEESE_ARROW, "cheese_arrow"); CheeseUtils.setNames(CHEESE_SWORD, "cheese_sword"); CheeseUtils.setNames(CHEESE_PICKAXE, "cheese_pickaxe"); CheeseUtils.setNames(CHEESE_AXE, "cheese_axe"); CheeseUtils.setNames(CHEESE_SHOVEL, "cheese_shovel"); CheeseUtils.setNames(CHEESE_HOE, "cheese_hoe"); CheeseUtils.setNames(CHEESE_FLY_STICK, "cheese_fly_stick"); CheeseUtils.setNames(CHEESE_BOW, "cheese_bow"); CheeseUtils.setNames(CHEESE_HELMET, "cheese_helmet"); CheeseUtils.setNames(CHEESE_CHESTPLATE, "cheese_chestplate"); CheeseUtils.setNames(CHEESE_LEGGINGS, "cheese_leggings"); CheeseUtils.setNames(CHEESE_BOOTS, "cheese_boots"); } public static void register() { GameRegistry.register(CHEESE_SWORD); GameRegistry.register(CHEESE_PICKAXE); GameRegistry.register(CHEESE_AXE); GameRegistry.register(CHEESE_SHOVEL); GameRegistry.register(CHEESE_HOE); GameRegistry.register(CHEESE_FLY_STICK); GameRegistry.register(CHEESE_BOW); GameRegistry.register(CHEESE_HELMET); GameRegistry.register(CHEESE_CHESTPLATE); GameRegistry.register(CHEESE_LEGGINGS); GameRegistry.register(CHEESE_BOOTS); GameRegistry.register(CHEESE); GameRegistry.register(CHEESE_COOKED); GameRegistry.register(BREAD_CHEESE); GameRegistry.register(CHEESE_APPLE); GameRegistry.register(CHEESE_BUCKET); GameRegistry.register(CHEESE_SEEDS); GameRegistry.register(CHEESE_INGOT); GameRegistry.register(CHEESE_ARROW); } } Eclipse console: [22:36:51] [server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: java.lang.NullPointerException at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_77] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_77] at net.minecraft.util.Util.runTask(Util.java:26) [util.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:742) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77] Caused by: java.lang.NullPointerException at net.minecraft.item.ItemSeeds.getPlant(ItemSeeds.java:52) ~[itemSeeds.class:?] at net.minecraft.block.Block.canSustainPlant(Block.java:1825) ~[block.class:?] at net.minecraft.item.ItemSeeds.onItemUse(ItemSeeds.java:31) ~[itemSeeds.class:?] at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:746) ~[ForgeHooks.class:?] at net.minecraft.item.ItemStack.onItemUse(ItemStack.java:158) ~[itemStack.class:?] at net.minecraft.server.management.PlayerInteractionManager.processRightClickBlock(PlayerInteractionManager.java:509) ~[PlayerInteractionManager.class:?] at net.minecraft.network.NetHandlerPlayServer.processRightClickBlock(NetHandlerPlayServer.java:706) ~[NetHandlerPlayServer.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:68) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.processPacket(CPacketPlayerTryUseItemOnBlock.java:13) ~[CPacketPlayerTryUseItemOnBlock.class:?] at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:15) ~[PacketThreadUtil$1.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[?:1.8.0_77] at java.util.concurrent.FutureTask.run(Unknown Source) ~[?:1.8.0_77] at net.minecraft.util.Util.runTask(Util.java:25) ~[util.class:?] ... 5 more
  9. Somebody please help
  10. The blockstate needs to be a json - not java
  11. Hello, I don't know if this is the right place to post this but in Eclipse (4.6.0.20160203-1802) my Content-assist isn't working I have tried changing the keybinding but it didn't work either so... Please help! Thanks in advance.
  12. I've added my own custom arrow and I can do /summon dgm.CheeseArrow and it will just spawn but when I have it in my inventory and use a bow it isn't fired but it shoots a normal arrow (in survival) Arrow item: package com.Egietje.degeweldigemod.init; import com.Egietje.degeweldigemod.entities.cheesearrow.EntityCheeseArrow; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.entity.projectile.EntitySpectralArrow; import net.minecraft.item.ItemArrow; import net.minecraft.item.ItemStack; import net.minecraft.world.World; public class CheeseArrow extends ItemArrow { public CheeseArrow() { super(); } public EntityArrow makeTippedArrow(World world, ItemStack stack, EntityLivingBase shooter) { return new EntityCheeseArrow(world, shooter); } } Arrow entity: import com.Egietje.degeweldigemod.init.CheeseItems; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.projectile.EntityArrow; import net.minecraft.init.Items; import net.minecraft.init.MobEffects; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.potion.PotionEffect; import net.minecraft.util.EnumParticleTypes; import net.minecraft.util.datafix.DataFixer; import net.minecraft.world.World; public class EntityCheeseArrow extends EntityArrow { private int duration = 200; public EntityCheeseArrow(World worldIn) { super(worldIn); } public EntityCheeseArrow(World worldIn, EntityLivingBase shooter) { super(worldIn, shooter); } public EntityCheeseArrow(World worldIn, double x, double y, double z) { super(worldIn, x, y, z); } @Override public void onUpdate() { super.onUpdate(); if (this.worldObj.isRemote && !this.inGround) { this.worldObj.spawnParticle(EnumParticleTypes.END_ROD, this.posX, this.posY, this.posZ, 0.0D, 0.0D, 0.0D, new int[0]); } } @Override public ItemStack getArrowStack() { return new ItemStack(CheeseItems.CHEESE_ARROW); } @Override public void arrowHit(EntityLivingBase living) { super.arrowHit(living); World world = living.getEntityWorld(); if(living != shootingEntity) { world.createExplosion(shootingEntity, living.posX, living.posY, living.posZ, 4.0F, true); } } } Entity renderer: package com.Egietje.degeweldigemod.entities.cheesearrow; import com.Egietje.degeweldigemod.Reference; import net.minecraft.client.renderer.entity.RenderArrow; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.util.ResourceLocation; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; @SideOnly(Side.CLIENT) public class RenderCheeseArrow extends RenderArrow<EntityCheeseArrow> { public static final ResourceLocation CHEESE_ARROW_TEXTURES = new ResourceLocation(Reference.MODID + ":textures/entity/cheese_arrow.png"); public RenderCheeseArrow(RenderManager manager) { super(manager); } protected ResourceLocation getEntityTexture(EntityCheeseArrow entity) { return CHEESE_ARROW_TEXTURES; } } Client proxy: package com.Egietje.degeweldigemod.proxy; import com.Egietje.degeweldigemod.DeGeweldigeMod; import com.Egietje.degeweldigemod.Reference; import com.Egietje.degeweldigemod.entities.cheesearrow.EntityCheeseArrow; import com.Egietje.degeweldigemod.entities.cheesearrow.RenderingHandlerCheeseArrow; import com.Egietje.degeweldigemod.entities.cheesecow.*; import com.Egietje.degeweldigemod.handler.CheeseClientHandler; import com.Egietje.degeweldigemod.handler.CheeseCommonHandler; import com.Egietje.degeweldigemod.init.CheeseBlocks; import com.Egietje.degeweldigemod.init.CheeseItems; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.EnumCreatureType; import net.minecraft.init.Biomes; import net.minecraft.item.Item; import net.minecraftforge.client.model.ModelLoader; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.Side; @SideOnly(Side.CLIENT) public class ClientProxy extends CommonProxy { public void registerModels() { registerItemModel(CheeseItems.CHEESE, 0); registerItemModel(CheeseItems.CHEESE_COOKED, 0); registerItemModel(CheeseItems.BREAD_CHEESE, 0); registerItemModel(CheeseItems.CHEESE_APPLE, 0); registerItemModel(CheeseItems.CHEESE_BUCKET, 0); registerItemModel(CheeseItems.CHEESE_INGOT, 0); registerItemModel(CheeseItems.CHEESE_ARROW, 0); registerItemModel(CheeseItems.CHEESE_SWORD, 0); registerItemModel(CheeseItems.CHEESE_PICKAXE, 0); registerItemModel(CheeseItems.CHEESE_AXE, 0); registerItemModel(CheeseItems.CHEESE_SHOVEL, 0); registerItemModel(CheeseItems.CHEESE_HOE, 0); registerItemModel(CheeseItems.CHEESE_FLY_STICK, 0); registerItemModel(CheeseItems.CHEESE_BOW, 0); registerItemModel(CheeseItems.CHEESE_HELMET, 0); registerItemModel(CheeseItems.CHEESE_CHESTPLATE, 0); registerItemModel(CheeseItems.CHEESE_LEGGINGS, 0); registerItemModel(CheeseItems.CHEESE_BOOTS, 0); registerBlockModel(CheeseBlocks.CHEESE_ORE, 0); registerBlockModel(CheeseBlocks.CHEESE_ORE_NETHER, 0); registerBlockModel(CheeseBlocks.CHEESE_ORE_END, 0); registerBlockModel(CheeseBlocks.CHEESE_BLOCK, 0); registerBlockModel(CheeseBlocks.QUICK_CHEESE, 0); registerBlockModel(CheeseBlocks.COMPLIMENT_MACHINE, 0); registerBlockModel(CheeseBlocks.BELGIUM_FLAG, 0); registerBlockModel(CheeseBlocks.CHEESE_WORKBENCH, 0); } public void registerEventHandler() { MinecraftForge.EVENT_BUS.register(new CheeseClientHandler()); } public void renderEntities() { RenderingRegistry.registerEntityRenderingHandler(EntityCheeseCow.class, new RenderingHandlerCheeseCow()); RenderingRegistry.registerEntityRenderingHandler(EntityCheeseArrow.class, new RenderingHandlerCheeseArrow()); } private void registerItemModel(Item item, int meta) { ModelLoader.setCustomModelResourceLocation(item, meta, new ModelResourceLocation(item.getRegistryName(), "inventory")); } private void registerBlockModel(Block block, int meta) { ModelLoader.setCustomModelResourceLocation(Item.getItemFromBlock(block), meta, new ModelResourceLocation(block.getRegistryName(), "inventory")); } } Main class: package com.Egietje.degeweldigemod; import org.lwjgl.opengl.Display; import com.Egietje.degeweldigemod.entities.CheeseSpawnPlacementRegistry; import com.Egietje.degeweldigemod.entities.cheesearrow.EntityCheeseArrow; import com.Egietje.degeweldigemod.entities.cheesecow.EntityCheeseCow; import com.Egietje.degeweldigemod.entities.cheesecow.ModelCheeseCow; import com.Egietje.degeweldigemod.entities.cheesecow.RenderCheeseCow; import com.Egietje.degeweldigemod.handler.CheeseCommonHandler; import com.Egietje.degeweldigemod.init.CheeseBlocks; import com.Egietje.degeweldigemod.init.CheeseItems; import com.Egietje.degeweldigemod.proxy.CommonProxy; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.EntitySpawnPlacementRegistry; import net.minecraft.entity.EnumCreatureType; import net.minecraft.entity.passive.EntityCow; import net.minecraft.init.Biomes; import net.minecraft.world.biome.Biome; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventHandler; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.SidedProxy; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.common.registry.GameRegistry; @Mod(modid = Reference.MODID, name = Reference.NAME, version = Reference.VERSION, acceptedMinecraftVersions = "[1.10.2]") public class DeGeweldigeMod { public static final CheeseTab tabCheeseStuff = new CheeseTab("tabCheeseStuff"); @SidedProxy(clientSide = Reference.CLIENTPROXY, serverSide = Reference.COMMONPROXY) public static CommonProxy proxy; @Instance(Reference.MODID) public static DeGeweldigeMod DGMInstance; @EventHandler public void preInit(FMLPreInitializationEvent event) { registerModEntityWithEgg(EntityCheeseCow.class, "CheeseCow", 0x917B1B, 0x8E814E, 250); EntityRegistry.addSpawn(EntityCheeseCow.class, 8, 4, 4, EnumCreatureType.CREATURE, Biomes.PLAINS); EntityRegistry.registerModEntity(EntityCheeseArrow.class, "CheeseArrow", 251, this.DGMInstance, 64, 1, true); new CheeseItems(); new CheeseBlocks(); new CheeseAchievements(); new CheeseSpawnPlacementRegistry(); proxy.registerModels(); proxy.renderEntities(); Display.setTitle("Minecraft - 1.10.2 | DeGeweldigeMod - " + Reference.VERSION); } @EventHandler public static void init(FMLInitializationEvent event) { new CheeseCraftingAndSmelting(); proxy.registerEventHandler(); GameRegistry.registerWorldGenerator(new CheeseGeneration(), 0); } @EventHandler public static void postInit(FMLPostInitializationEvent event) { } public void registerModEntityWithEgg(Class entityClass, String entityName, int eggColor, int eggSpotsColor, int entityID) { EntityRegistry.registerModEntity(entityClass, entityName, entityID, this.DGMInstance, 80, 3, false); EntityRegistry.registerEgg(entityClass, eggColor, eggSpotsColor); } }
  13. Now, it opens but I can't move any items etc. in it
  14. in what folder is it?
  15. And even when I copy the cow loot table it doesn't work
  16. Yes, did that as well
  17. Didn't help
  18. \src\main\resources\assets\dgm\loot_tables\cheese_cow.json
  19. { "pools": [ { "rolls":1, "entries": [ { "type": "item", "name":"dgm:cheese", "weight":1, "functions": [ { "function":"set_count", "count": { "min":1,"max":5 } }, { "function":"furnace_smelt", "conditions": [ { "condition":"entity_properties", "entity":"this", "properties": { "on_fire":true } } ] } ] }, { "type":"item", "name":"dgm:cheese_apple", "weight":1, "functions": [ { "function":"set_data", "data":0 }, { "function":"set_count", "count":1, "conditions": [ { "condition":"random_chance_with_looting", "chance":0.01," looting_multiplier":0.02 } ] } ] } ] } ] } [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@7ee547dc[id=dc4e436a-deac-3fcd-b3ce-7013be63ef4d,name=Player830,properties={},legacy=false] com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:65) ~[YggdrasilAuthenticationService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:175) [YggdrasilMinecraftSessionService.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:59) [YggdrasilMinecraftSessionService$1.class:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:56) [YggdrasilMinecraftSessionService$1.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:165) [YggdrasilMinecraftSessionService.class:?] at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3060) [Minecraft.class:?] at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:131) [skinManager$3.class:?] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_77] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_77] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77] [13:30:07] [server thread/ERROR]: Couldn't load loot table dgm:cheese_cow from file:/C:/Users/Thomas/Desktop/Coding/DeGeweldigeMod%201.10.2/bin/assets/dgm/loot_tables/cheese_cow.json com.google.gson.JsonParseException: Loot Table "dgm:cheese_cow" Missing `name` entry for pool #0 at net.minecraftforge.common.ForgeHooks.readPoolName(ForgeHooks.java:1105) ~[ForgeHooks.class:?] at net.minecraft.world.storage.loot.LootPool$Serializer.deserialize(LootPool.java:152) ~[LootPool$Serializer.class:?] at net.minecraft.world.storage.loot.LootPool$Serializer.deserialize(LootPool.java:147) ~[LootPool$Serializer.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?] at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) ~[TypeAdapterRuntimeTypeWrapper.class:?] at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:72) ~[ArrayTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:868) ~[Gson.class:?] at com.google.gson.Gson$1.deserialize(Gson.java:126) ~[Gson$1.class:?] at net.minecraft.util.JsonUtils.deserializeClass(JsonUtils.java:378) ~[JsonUtils.class:?] at net.minecraft.util.JsonUtils.deserializeClass(JsonUtils.java:400) ~[JsonUtils.class:?] at net.minecraft.world.storage.loot.LootTable$Serializer.deserialize(LootTable.java:209) ~[LootTable$Serializer.class:?] at net.minecraft.world.storage.loot.LootTable$Serializer.deserialize(LootTable.java:204) ~[LootTable$Serializer.class:?] at com.google.gson.TreeTypeAdapter.read(TreeTypeAdapter.java:58) ~[TreeTypeAdapter.class:?] at com.google.gson.Gson.fromJson(Gson.java:803) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:768) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:717) ~[Gson.class:?] at com.google.gson.Gson.fromJson(Gson.java:689) ~[Gson.class:?] at net.minecraftforge.common.ForgeHooks.loadLootTable(ForgeHooks.java:1029) ~[ForgeHooks.class:?] at net.minecraft.world.storage.loot.LootTableManager$Loader.loadBuiltinLootTable(LootTableManager.java:148) [LootTableManager$Loader.class:?] at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:71) [LootTableManager$Loader.class:?] at net.minecraft.world.storage.loot.LootTableManager$Loader.load(LootTableManager.java:52) [LootTableManager$Loader.class:?] at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2195) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.get(LocalCache.java:3934) [guava-17.0.jar:?] at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3938) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821) [guava-17.0.jar:?] at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:4827) [guava-17.0.jar:?] at net.minecraft.world.storage.loot.LootTableManager.getLootTableFromLocation(LootTableManager.java:39) [LootTableManager.class:?] at net.minecraft.entity.EntityLiving.dropLoot(EntityLiving.java:596) [EntityLiving.class:?] at net.minecraft.entity.EntityLivingBase.onDeath(EntityLivingBase.java:1191) [EntityLivingBase.class:?] at net.minecraft.entity.EntityLivingBase.attackEntityFrom(EntityLivingBase.java:1066) [EntityLivingBase.class:?] at net.minecraft.entity.passive.EntityAnimal.attackEntityFrom(EntityAnimal.java:80) [EntityAnimal.class:?] at net.minecraft.entity.projectile.EntityArrow.onHit(EntityArrow.java:390) [EntityArrow.class:?] at net.minecraft.entity.projectile.EntityArrow.onUpdate(EntityArrow.java:285) [EntityArrow.class:?] at net.minecraft.entity.projectile.EntityTippedArrow.onUpdate(EntityTippedArrow.java:88) [EntityTippedArrow.class:?] at net.minecraft.world.World.updateEntityWithOptionalForce(World.java:2106) [World.class:?] at net.minecraft.world.WorldServer.updateEntityWithOptionalForce(WorldServer.java:872) [WorldServer.class:?] at net.minecraft.world.World.updateEntity(World.java:2073) [World.class:?] at net.minecraft.world.World.updateEntities(World.java:1886) [World.class:?] at net.minecraft.world.WorldServer.updateEntities(WorldServer.java:644) [WorldServer.class:?] at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:783) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:687) [MinecraftServer.class:?] at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:156) [integratedServer.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:536) [MinecraftServer.class:?] at java.lang.Thread.run(Unknown Source) [?:1.8.0_77]
  20. Still didn't work...
×
×
  • Create New...

Important Information

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