Jump to content

Merthew

Members
  • Posts

    128
  • Joined

  • Last visited

Everything posted by Merthew

  1. How would I add a custom tooltip on mousing over a certain area of my custom gui? Code: https://github.com/Merthew/Empire-Of-Blood/ Block Working On: Blood Altar
  2. Does anybody know how to send a message to chat from onBlockActivated()?
  3. Can you post your code? If you have a problem, it necessary to post your code.
  4. Well right now, github doesn't seem to be working. it may not have updated.
  5. Did i do it right? Also looking at the model registry. I have no idea if this was the "right" way. Thanks for your help by the way. Code: https://github.com/Merthew/Empire-Of-Blood
  6. How would i register the items/blocks in the registry event? would i create them in the registryhandler class?
  7. sorry i forgot to push the code to github. clearly i have very little idea what i am doing.
  8. Not sure what i did wrong here. If anyone can help that would be nice, by the way thank you V0idWa1k3r. Code: https://github.com/Merthew/Empire-Of-Blood Working on the syringe item.
  9. How would i change the texture used for an item in the model file based on nbt data?
  10. What would the best way to get how much damage a player deals with a specific item to an entity? Would i need to subscribe to an onDamge event?
  11. nevermind, it was the block model
  12. It is still invisible... no longer extends BlockContainer and getRenderType returns MODEL so... no idea
  13. I made a block and there is no texture. not the traditional missing texture black and purple, invisible. I can see though it into the depths of the world. Any ideas about how to fix this? *The block is the block furnace in the objects/machines/furnace . . . methinks GitHub: https://github.com/Merthew/MerthewMod/tree/master
  14. If you need my code: https://github.com/Merthew/MerthewMod
  15. Upon right clicking my custom machine, nothing happens and i get this error: [11:11:31] [main/FATAL] [net.minecraft.client.Minecraft]: Error executing task java.util.concurrent.ExecutionException: java.lang.ClassCastException: merthew.mod.objects.machines.furnace.ContainerFurnace cannot be cast to net.minecraft.client.gui.GuiScreen at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:1.8.0_161] at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:1.8.0_161] at net.minecraft.util.Util.runTask(Util.java:54) [Util.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1176) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:441) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:118) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_161] at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_161] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_161] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_161] at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?] at GradleStart.main(GradleStart.java:25) [start/:?] Anybody know how to fix this?
  16. I just used isItemEqual(); and it seems to be working fine.
  17. Thanks, i never knew about many of the methods you so far have helped with.
  18. wrong code.. srry @Override public void onArmorTick(final World world, final EntityPlayer player, final ItemStack itemStack) { List<ItemStack> narmor = new ArrayList<ItemStack>(); narmor.add(new ItemStack(ItemInit.BOOTS_MERTHEW)); narmor.add(new ItemStack(ItemInit.LEGGINGS_MERTHEW)); narmor.add(new ItemStack(ItemInit.CHESTPLATE_MERTHEW)); narmor.add(new ItemStack(ItemInit.HELM_MERTHEW)); List<ItemStack> armor = (List<ItemStack>) player.getArmorInventoryList(); if(armor.get(0) == narmor.get(3)) { if (!player.isPotionActive(potionEffect.getPotion())) { // If the Potion isn't currently active, player.addPotionEffect(new PotionEffect(potionEffect)); // Apply a copy of the PotionEffect to the player } } }
  19. @SubscribeEvent public void onDamage(LivingDamageEvent event) { EntityPlayer player; List<ItemStack> armor = null; if(event.getEntity() instanceof EntityPlayer) { player = (EntityPlayer) event.getEntity(); armor = (List<ItemStack>) player.getArmorInventoryList(); } if(!armor.isEmpty()) { if(armor.get(0) == new ItemStack(ItemInit.BOOTS_MERTHEW)) { if(armor.get(1) == new ItemStack(ItemInit.LEGGINGS_MERTHEW)) { if(armor.get(2) == new ItemStack(ItemInit.CHESTPLATE_MERTHEW)) { if(armor.get(3) == new ItemStack(ItemInit.HELM_MERTHEW)) { event.setAmount(0); } } } } } } This is what i was trying to do, what am i doing wrong? if you need the git hub: https://github.com/Merthew/MerthewMod/
  20. How would one test for the armor a player is wearing and if say the player was wearing a full set of diamond armor give some effect or buff?
  21. Nevermind i fixed it.
  22. On using the clock_potion_absorption, the first use works but any use after gives the effect for a half second and then just kind of dies out. Thanks https://github.com/Merthew/MerthewMod
  23. Not sure what i am doing, but i want to be able to add a creative flight effect. Right now it just has a println statement. Not even sure i am doing this right. Please help. https://github.com/Merthew/MerthewMod
  24. Oh well...
×
×
  • Create New...

Important Information

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