terraya
Members-
Posts
161 -
Joined
-
Last visited
Everything posted by terraya
-
[1.8.9](SOLVED)Null error but i cant fix it ..:3
terraya replied to terraya's topic in Modder Support
tried that already before, dont work ... still the same, but i dont understand why he wants to register an item which extends "ItemSword" , as a block ... -
[1.8.9](SOLVED)Null error but i cant fix it ..:3
terraya replied to terraya's topic in Modder Support
ok after fixing this, now he tryed to register my "Item" as a block ? why is that ---- Minecraft Crash Report ---- // I let you down. Sorry Time: 11.10.16 13:56 Description: Initializing game java.lang.IllegalArgumentException: Attempted to register a block with no name: Items.TestSkill@1d1a706 at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:150) at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:137) at ArturFarid.BlockUpdate.init.ItemsUpdate.register(ItemsUpdate.java:573) at ArturFarid.BlockUpdate.BlocksUpdate.preInit(BlocksUpdate.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) -
Hello Dear Forum, i keep studying java, but only through minecraft coding, its kind of funny to learn it like this , well, since this forum was everytime very helpfull, i have a next problem , --- ERROR LOG --- ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 10.10.16 22:17 Description: Initializing game java.lang.IllegalArgumentException: The name blockupdate:null has been registered twice, for net.minecraft.item.ItemBlock@7731504 and Items.TestSkill@1d1a706. at net.minecraftforge.fml.common.registry.FMLControlledNamespacedRegistry.add(FMLControlledNamespacedRegistry.java:456) at net.minecraftforge.fml.common.registry.GameData.registerItem(GameData.java:120) at net.minecraftforge.fml.common.registry.GameRegistry.registerItem(GameRegistry.java:152) at ArturFarid.BlockUpdate.init.ItemsUpdate.register(ItemsUpdate.java:574) at ArturFarid.BlockUpdate.BlocksUpdate.preInit(BlocksUpdate.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:560) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:211) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:189) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at net.minecraftforge.fml.common.Loader.preinitializeMods(Loader.java:556) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:243) at net.minecraft.client.Minecraft.startGame(Minecraft.java:451) at net.minecraft.client.Minecraft.run(Minecraft.java:360) at net.minecraft.client.main.Main.main(Main.java:116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) emm well , my "Skill Class" : package Items; import java.util.List; import ArturFarid.BlockUpdate.Util.ElementalConfig; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.util.EnumChatFormatting; import net.minecraft.world.World; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; public class TestSkill extends ItemSword { public TestSkill(Item.ToolMaterial m, String name) { super(m); setRegistryName(name); } public boolean onLeftClickEntity(ItemStack par1, EntityPlayer par2, Entity par3) { if (!par2.getEntityWorld().isRemote) { par3.setFire(ElementalConfig.swordAbilitiesControlledByExp ? par2.experienceLevel / 5 + 5 : 20); } return false; } @SideOnly(Side.CLIENT) public void addInformation(ItemStack par1, EntityPlayer par2, List par3, boolean par4) { par3.add(EnumChatFormatting.RED + "BURN" + "!"); } } The Small stuff: public static Item.ToolMaterial fire = EnumHelper.addToolMaterial("Fire", 10, 2000, 10.0F, 4.0F, 2); public static TestSkill fireskill; fireskill = new TestSkill (fire, "test"); GameRegistry.registerItem(fireskill, fireskill.getUnlocalizedName().substring(5)); //Here is the Error, if i set this as "comment" the game starts witouth problem registerRender(fireskill); and well the json is a normal test one: { "parent": "builtin/generated", "textures": { "layer0": "blockupdate:item/fireskill" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } }
-
Hello Dear Forum, i cannot find a list or anything for those functions: !par2.func_130014_f_().field_72995_K par3.func_70015_d par2.field_71068_ca (Obv. "field" etc arent exactly functions ... etc but anyway , is there any list or anything where i can find these functions?)
-
[1.10.2] updating my mod, some small problems which i cant fix ...
terraya replied to terraya's topic in Modder Support
still have a small error on starting minecraft itself over eclipse ... thats the error ---- Minecraft Crash Report ---- // Ooh. Shiny. Time: 20.09.16 16:23 Description: Initializing game java.lang.IllegalArgumentException: Can not set static ArturFarid.BlockUpdate.BlocksUpdate field ArturFarid.BlockUpdate.BlocksUpdate.instance to com.example.examplemod.ExampleMod at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source) at java.lang.reflect.Field.set(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:487) at net.minecraftforge.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:418) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:545) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218) at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Client thread Stacktrace: at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(Unknown Source) at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(Unknown Source) at java.lang.reflect.Field.set(Unknown Source) at net.minecraftforge.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:487) at net.minecraftforge.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:418) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:580) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.sendEventToModContainer(LoadController.java:239) at net.minecraftforge.fml.common.LoadController.propogateStateMessage(LoadController.java:217) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at net.minecraftforge.fml.common.LoadController.distributeStateMessage(LoadController.java:142) at net.minecraftforge.fml.common.Loader.loadMods(Loader.java:545) at net.minecraftforge.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:218) at net.minecraft.client.Minecraft.startGame(Minecraft.java:477) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.run(Minecraft.java:386) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26) that one here: java.lang.IllegalArgumentException: Can not set static ArturFarid.BlockUpdate.BlocksUpdate field ArturFarid.BlockUpdate.BlocksUpdate.instance to com.example.examplemod.ExampleMod i replaced the "SRC" folder from 1.8.9 with the one from 1.10.2 , it started at the start before "replacing" it and nowafter fixing all the "errors" it wont start, also probably , the json files have to be changed, i hear that the json files changed from 1.8.9 to 1.10.2 , and as i can remember, always when a json file wasnt right, the game crashed. but still, the error says nothing about json. -
[1.10.2] updating my mod, some small problems which i cant fix ...
terraya replied to terraya's topic in Modder Support
perfect, didnt expected to fix all that stuff so fast, thank you guys! -
[1.10.2] updating my mod, some small problems which i cant fix ...
terraya replied to terraya's topic in Modder Support
it says "BlockPos" cannot be resolved as a type which is weird for me ... for the other stuff, thanks i try to fix the problems! -
Hello Dear Forum, im upgrading my MOD from 1.8.9 to 1.10.2 i got still couple of problems, 1. my transcluent blocks arent working bcuz package ArturFarid.BlockUpdate.blocks; import net.minecraft.block.Block; import net.minecraft.block.BlockStainedGlass; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.util.EnumWorldBlockLayer; public class BlockUpdateGlassClass extends Block{ public BlockUpdateGlassClass(String unlocalizedName, Material materialIn, float hardness, float resistance){ super(materialIn); this.setUnlocalizedName(unlocalizedName); this.setCreativeTab(CreativeTabs.MATERIALS); this.setHardness(hardness); this.setResistance(resistance); } public boolean isOpaqueCube() { return false; } public boolean isFullCube() { return false; } @Override public boolean isVisuallyOpaque() { return false; } @Override public EnumWorldBlockLayer getBlockLayer(){ return EnumWorldBlockLayer.TRANSLUCENT; } } the problem here is at the "Enum World Block Layer" ... what can i do , to replace it? another problem is that "BlockPos" dont work anymore, package Items; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.Item.ToolMaterial; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemSword; import net.minecraft.world.World; import java.util.Random; import java.util.concurrent.TimeUnit; import ArturFarid.BlockUpdate.BlocksUpdate; import gnu.trove.impl.hash.THash; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.util.BlockPos; import net.minecraft.util.EnumFacing; import net.minecraft.util.Vec3; import net.minecraft.world.World; import net.minecraft.world.gen.feature.WorldGenerator; public class TestDevilFruitClass extends Item { private long lastUse = 0; public TestDevilFruitClass() { super(); } public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) { return true; } public ItemStack onItemRightClick(ItemStack itemStackIn, World world, EntityPlayer playerIn) { if (System.currentTimeMillis() - lastUse > TimeUnit.SECONDS.toMillis(1)) { BlockPos pos = playerIn.getPosition(); Vec3 lookVec = playerIn.getLookVec(); double distance = 6; double xLook = lookVec.xCoord * distance; double yLook = lookVec.yCoord * distance; double zLook = lookVec.zCoord * distance; int x = (int) (pos.getX() + xLook); int y = (int) (pos.getY() + yLook); int z = (int) (pos.getZ() + zLook); //int width = 25; // for (int _x = 0; _x <= width; _x++) { // for (int _y = 0; _y <= width; _y++) { // for (int _z = 0; _z <= width; _z++) { // if (_y == 0 || _y == width || _x == 0 || _x == width || _z == 0 // || _z == width) { // world.setBlockState(new BlockPos(x + _x, y + _y, z + _z), // Blocks.planks.getDefaultState()); // } // } // } // } // Y: Von oben nach unten(die höhe der blöcke wo sie entstehen sollen , z.b 3 ... dan wird der block 3blöcke hochgehen //X: Links nach rechts gleiches prinzip wie bei "Y" // Y: Von oben nach unten(die höhe der blöcke wo sie entstehen sollen , z.b 3 ... dan wird der block 3blöcke hochgehen // X: nach vorne/hinten // Z: Links nach rechts world.setBlockState(new BlockPos(x , y + 6, z +1 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z -1 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y - 2, z +1 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y - 2, z -1 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y - 2, z ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z +2 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z -2 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 4, z +3 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 4, z -3 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 3, z +4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 3, z -4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 2, z +4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 2, z -4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 1, z +4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 1, z -4 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y , z - 3 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y , z + 3 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y - 1, z - 2 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y - 1, z + 2 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 5, z +1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 5, z -1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 5, z ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 5, z +1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 5, z -1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 5, z ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y - 1, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y - 1, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y - 1, z ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y - 1, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y - 1, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y - 1, z ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y , z - 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y , z + 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y , z - 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y , z + 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 1, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 1, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 1, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 1, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 2, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 2, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 2, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 2, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 3, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 3, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 3, z - 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 3, z + 3 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 4, z - 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 4, z + 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 4, z - 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 4, z + 2 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 4, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 4, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 4, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 4, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 4, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 4, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 3, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 3, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 3, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 3, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 3, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 3, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 2, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 2, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 2, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 2, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 2, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 2, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 1, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 1, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 1, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 1, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 1, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 1, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y, z - 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y, z + 1 ), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y, z), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 1, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 1, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 2, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 2, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 3, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 3, z + 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 1, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 1, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 2, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 2, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x - 2, y + 3, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x + 2, y + 3, z - 2), Blocks.STONE.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z -5 ), Blocks.GLASS.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z -6 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z -7 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z -7 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z -6 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z -5 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z -4 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z -4 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 7, z - 5 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 6, z - 5 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 7, z - 6 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 6, z - 6 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 7, z - 5 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 6, z - 5 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 7, z - 6 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 6, z - 6 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z - 3 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 9, z - 3 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 10, z - 2 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 10, z - 1 ), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 9, z), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7,z - 1), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7,z - 2), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 8, z - 2 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 9, z - 2 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 8, z - 1 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 9, z - 1 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 8, z - 2 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 9, z - 2 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 8, z - 1 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 9, z - 1 ), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x , y + 9, z), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 10, z + 1), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 10, z + 2), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 9, z + 3), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z + 3), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z + 2), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z + 1), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 9, z + 2), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 8, z + 2), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 9, z + 1), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 8, z + 1), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 9, z + 2), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 8, z + 2), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 9, z + 1), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 8, z + 1), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z + 4), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z + 4), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z + 5), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 8, z + 6), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 7, z + 7), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 6, z + 7), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z + 5), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x , y + 5, z + 6), Blocks.glass.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 6, z + 6), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 6, z + 5), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 7, z + 6), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x + 1, y + 7, z + 5), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 6, z + 6), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 6, z + 5), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 7, z + 6), Blocks.stone.getDefaultState()); world.setBlockState(new BlockPos(x - 1, y + 7, z + 5), Blocks.stone.getDefaultState()); //------------------------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------------------------------------------------- lastUse = System.currentTimeMillis(); } return itemStackIn; } @Override public CreativeTabs getCreativeTab() { return BlocksUpdate.devil_fruit_tab; } } any idea from someone? last problem is here: Good_Bread = new BlockUpdateFoodClass( "Good_Bread", 0, 0f, false, new PotionEffect(Potion.regeneration.id,50, 1)); Potion.regeneration is not anymore aviable... i know its much, im very thankful for any help!
-
[1.8.9] Cannot add more Lifepoints to the armor?
terraya replied to terraya's topic in Modder Support
alright i will try it -
Hello Dear Community, i try to add "Custom lifepoints" if someone wear my armor, but this doesnt work, he cannot find the function: .getEntityAttribute ... ? package Items; import com.google.common.collect.Multimap; import ArturFarid.BlockUpdate.BlocksUpdate; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.Entity; import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.ai.attributes.AttributeModifier; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemArmor.ArmorMaterial; import net.minecraft.item.ItemStack; import net.minecraft.potion.Potion; import net.minecraft.potion.PotionEffect; import net.minecraft.world.World; public class BlockUpdateArmorClass extends ItemArmor{ public BlockUpdateArmorClass(ArmorMaterial material, int renderIndex, int armorType) { super(material, renderIndex, armorType); this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(2000F); switch(armorType) { case 0: setUnlocalizedName("Test_Armor_Helmet"); break; case 1: setUnlocalizedName("Test_Armor_Chestplate"); break; case 2: setUnlocalizedName("Test_Armor_Legs"); break; case 3: setUnlocalizedName("Test_Armor_Boots"); break; } } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type){ if (slot == 0 || slot == 1 || slot == 3){ return "blockupdate:textures/models/armor/test_armor_layer1.png"; } else if (slot == 2) { return "blockupdate:textures/models/armor/test_armor_layer2.png"; } else { return null; } } }
-
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
ok so i will have to wait until 1.9.4 of CustomNPC mod ... anyway thanks -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
Last Question is , do generic.armorToughness is addet at exactly 1.9 or later? becouse i need for my RPG, the Mod. "CustomNPCMod" ... and the latest version of it is at 1.9, it dont work at 1.9.4 so i would upgrade my mod from 1.8.9 to 1.9 if the "generic.armorToughness" is addet already. -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
alright, thanks lets see if i can work with -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
One thing still , im coding all my stuff for 1.8.9, the generic.armorToughness update came with 1.9.1 ... , so i will have to update my mod ? -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
yes i get it, " damage = damage * ( 1 - min( 20, max( defensePoints / 5, defensePoints - damage / ( 2 + toughness / 4 ) ) ) / 25 )" but ... lol nvm i overread it "Armor can further protect the player through a second attribute, generic.armorToughness. By default, only diamond armor provides toughness, with each piece granting +2 toughness." perfect, thank you! -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
hmm this will be a problem ... well may health i can add is 1048 (something close or thats exactly the mas health amount) , but cant i add 4 Material classes, all 4 give for example 24armor ... 24x 4 = 92 armor , would this work? EDIT: Becouse if 20 armor reduces 8damage of 20 damage... thats not much -
[1.8.9] Armor makes me unvulnerable ... how to change it?
terraya replied to terraya's topic in Modder Support
ohh i thought its flat damage ... didnt know thats percentage .. alright, still .. hmm , thats a bit of trouble becouse if im doing a RPG game, there are monsters from lv1 - lv40 etc ... ofc i can add more "HP" (lifepoints) but still would like to add more damage reduction, ... "armor thoughness" , i will look at that , thanks -
Hello Dear Forum, as you can see, since couple of days i discoverd this forum and i got alot of questions becouse i wanna get forward with my server, so sorry for this as first My question is, ... example: i got monsteres level 30 , which do 50 damage ...but my armor cant handle this , i mean i can only make an armor with max. 24damage reduction not more, is there any way to change that? i want to make an armor for example, he gives me an reduction of 45 damage and if the monster has 50damage, i will get only hit by 5 damage ... well like a normal armor, just how 2 make the "invulnerability" gone? that i can add more armor...
-
[1.8.9] Armor Equipted shows no Texture ... -_-(path finding is wrong)
terraya replied to terraya's topic in Modder Support
OK I FOUND IT!! thats to "gabrielbl" and to you "Animefan8888" , the problem was that i didnt wrote ".png" behind the layer texture ... , i found this at the post from gabriel, so now it work as this: @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type){ if (slot == 0 || slot == 1 || slot == 3){ return "blockupdate:textures/models/armor/test_armor_layer1.png"; } else if (slot == 2) { return "blockupdate:textures/models/armor/test_armor_layer2.png"; } else { return null; } } } thanks guys ! -
[1.8.9] Armor Equipted shows no Texture ... -_-(path finding is wrong)
terraya replied to terraya's topic in Modder Support
just edited my class: public class BlockUpdateArmorClass extends ItemArmor{ public BlockUpdateArmorClass(ArmorMaterial material, int renderIndex, int armorType) { super(material, renderIndex, armorType); switch(armorType) { case 0: setUnlocalizedName("Test_Armor_Helmet"); break; case 1: setUnlocalizedName("Test_Armor_Chestplate"); break; case 2: setUnlocalizedName("Test_Armor_Legs"); break; case 3: setUnlocalizedName("Test_Armor_Boots"); break; } } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type){ if (slot == 0 || slot == 1 || slot == 3){ return "blockupdate:textures/models/armor/Test_Armor_Layer1"; } else if (slot == 2) { return "blockupdate:textures/models/armor/Test_Armor_Layer2"; } else { return null; } } } in this case i could leave the "PATH" to the layer empty ... but it still doesnt work .. anyone any suggestions? -
[1.8.9] Armor Equipted shows no Texture ... -_-(path finding is wrong)
terraya replied to terraya's topic in Modder Support
modid : blockupdate string: Test_Armor_Layer1 Test_Armor_Layer2 and it dont work -
Hello Dear Forum, Im stucking at a small problem ... i cant solve it i codet an armor, armor class: public class BlockUpdateArmorClass extends ItemArmor{ public BlockUpdateArmorClass(String unlocalizedName,ArmorMaterial material, int renderIndex, int armorType) { super(material, renderIndex, armorType); this.setUnlocalizedName(unlocalizedName); switch(armorType) { case 0: setUnlocalizedName("Test_Armor_Helmet"); break; case 1: setUnlocalizedName("Test_Armor_Chestplate"); break; case 2: setUnlocalizedName("Test_Armor_Legs"); break; case 3: setUnlocalizedName("Test_Armor_Boots"); break; } } } then i created a test material: public static ArmorMaterial Test_Armor_Material = EnumHelper.addArmorMaterial("Test_Armor_Material", "blockupdate:item", 16, new int[] {3, 8, 6, 3}, 30); then i registered it: Test_Armor_Helmet = new BlockUpdateArmorClass("Test_Armor_Helmet", Test_Armor_Material, 1, 0); Test_Armor_Chestplate = new BlockUpdateArmorClass("Test_Armor_Chestplate", Test_Armor_Material, 1, 1); Test_Armor_Legs = new BlockUpdateArmorClass("Test_Armor_Legs", Test_Armor_Material, 2, 2); Test_Armor_Boots = new BlockUpdateArmorClass("Test_Armor_Boots", Test_Armor_Material, 1, 3); GameRegistry.registerItem(Test_Armor_Helmet, Test_Armor_Helmet.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Test_Armor_Chestplate, Test_Armor_Chestplate.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Test_Armor_Legs, Test_Armor_Legs.getUnlocalizedName().substring(5)); GameRegistry.registerItem(Test_Armor_Boots, Test_Armor_Boots.getUnlocalizedName().substring(5)); the Json files are alright, here just to proof, the helmet for example: { "parent": "builtin/generated", "textures": { "layer0": "blockupdate:item/Test_Armor_Helmet" }, "display": { "thirdperson": { "rotation": [ -90, 0, 0 ], "translation": [ 0, 1, -3 ], "scale": [ 0.55, 0.55, 0.55 ] }, "firstperson": { "rotation": [ 0, -135, 25 ], "translation": [ 0, 4, 2 ], "scale": [ 1.7, 1.7, 1.7 ] } } } and there we go, the problem is at the "Layer" path in the new "Material", this is the path to my layers : src\main\resources\assets\blockupdate\textures\models\armor names of the Layers: Test_Armor_Layer1 Test_Armor_Layer2
-
i will give my best, thank you very much!
-
Hello@All, Im Working still on my MOD which i will use on my "BIG" MORPG Server, but there are still a few questions i have and i am resolving one by one ... , The problem i have got atm is, how could i remove/disable all the recipes? Im making a shop where ppl can buy their blocks/items etc ... for "Berrys"(my ingame money) and it wouldnt be nice if ppl would start to make a craftigtable etc .. and do whatever they want , so i would like to disable recipes, anyone any suggestion? Dear Greetings.
-
[1.8.9] Forge // Entity Spawn and Game Crash?!?
terraya replied to terraya's topic in Modder Support
package ArturFarid.BlockUpdate.Util; import ArturFarid.BlockUpdate.BlocksUpdate; import net.minecraft.client.renderer.entity.Render; import net.minecraft.entity.EntityList; import net.minecraft.entity.EnumCreatureType; import net.minecraft.world.biome.BiomeGenBase; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry; public class EntityCreator { public static final void CreateEntity(Class entityClass, Render render, String entityName, EnumCreatureType type, int probability, int minSpawn, int maxSpawn, BiomeGenBase[] biomes, int solidColor, int spotColor, boolean hasSpawnEgg) { int id = EntityRegistry.findGlobalUniqueEntityId(); EntityRegistry.registerGlobalEntityID(entityClass, entityName, id); EntityRegistry.registerModEntity(entityClass, entityName, id, BlocksUpdate.instance, 64, 1, true); EntityRegistry.addSpawn(entityName, probability, minSpawn, maxSpawn, type, biomes); RenderingRegistry.registerEntityRenderingHandler(entityClass, render); if(hasSpawnEgg){ EntityList.entityEggs.put(Integer.valueOf(id), new EntityList.EntityEggInfo(id, solidColor, spotColor)); } } } and EntityCreator.CreateEntity(EntityModelTest.class, new RenderModelTest(), "ModelTest", EnumCreatureType.MONSTER, 5, 0, 10, new BiomeGenBase[]{}, 0xFF0FB, 0xD69D00, true);