Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Noxxous

Members
  • Content Count

    18
  • Joined

  • Last visited

Everything posted by Noxxous

  1. Hey guys, I have been trying to Google this for a couple of hours but I can't find anything on making a GUI and everything I have found is mostly outdated. I was more wondering if anyone has any links to good tutorials or maybe some information on Forge/Minecraft's API. This is everything I felt I needed to say
  2. No it isn't possible but you could make your own redstone and you can use Redstone repeaters or you could edit Minecraft's source code
  3. Hi, I am giving you code that lets you let the block do something when you switch it on with Redstone. It is of course for 1.16 but can updated with the same principles. You just have to code in the actions or statements into "onRedstoneActivated". This will work if the redstone is already on and you place it where to signal is leading towards being used in "onPlace". There is example code in here that is optional and can be deleted... I have taged it with "optional" package com.blakegale.test; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecr
  4. Ok it's fine I just changed the modid in the JSON file
  5. Ok I fixed that issue by lengthening my modid. That seemed to do the trick but there's one other error [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: The following texture errors were found. [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: ================================================== [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: DOMAIN minecraft [07:01:31] [Client thread/ERROR] [FML.TEXTURE_ERRORS]: --------------------------------------------------
  6. package com.blake.cloudmod; import net.minecraft.item.Item; public class CommonProxy { public void registerItemRenderer (Item item, int meta, String id) {} }
  7. package com.blake.cloudmod; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemAnvilBlock; import net.minecraft.item.ItemAppleGold; import net.minecraftforge.client.model.ModelLoader; public class ClientProxy extends CommonProxy { //this appears to be the issue public void registerItemRenderer (Item item, int meta, String id) { ModelLoader.setCustomModelResourceLocation (item, meta, new ModelResourceLocation(item.getRegistryName(), id)); } } package com.blake.cloudmo
  8. I'm trying to Render my Item but my code throws an exception. [06:13:42] [Client thread/ERROR] [FML]: Exception loading model for variant minecraft:hello#inventory for item "d:hello", normal location exception: net.minecraftforge.client.model.ModelLoaderRegistry$LoaderException: Exception loading model minecraft:item/hello with loader VanillaLoader.INSTANCE, skipping at net.minecraftforge.client.model.ModelLoaderRegistry.getModel(ModelLoaderRegistry.java:161) ~[ModelLoaderRegistry.class:?] at net.minecraftforge.client.model.ModelLoader.loadItemModels(ModelLoader.java:302) ~[ModelLoa
  9. Ok the material changing helped. Thanks
  10. Hi, I am trying to use 'setHarvestLevel("pickaxe", 3)' in my block constructor but nothing seems to be working. It does render but I am legitimately out of ideas, what might I be doing wrong as I do not get error messages yet will be able harvest it with my fist.
  11. I did that because of the smallness of the code I wanted to put in there. I didn't want to show a whole class just a bit of code
  12. @Mod.EventBusSubscriber needs to be at the top of the class, before declaration and the subscribe event needs to be a static. Other than that, this is the smallest you can get it and it is good because you don't need to create another class for the items. Thanks, you helped me get to understand this
  13. Ok, so I have been spending all day trying to code in an Item and it seems to work but when I check miscellaneous tab, it just doesn't show up. I don't know what I am doing wrong, no crash reports, nothing. What am I doing wrong? Please help. Thank you
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.