Jump to content

poopoodice

Members
  • Posts

    1160
  • Joined

  • Days Won

    7

Everything posted by poopoodice

  1. Nvm, I sort it out! Thank you for your reply : )
  2. Good point. Now he/she can make a item that without everything but the attributes he wants such as potion effect while leftclick on an entity. Nice.
  3. Sorry but I still dont quite get it. Should I import a json file with pool or simply returns items in the function? Here is the forge documentation =>https://mcforge.readthedocs.io/en/latest/items/loot_tables/#modifying-vanilla-loot It says @SubscribeEvent public void lootLoad(LootTableLoadEvent evt) { if (evt.getName().toString().equals("minecraft:chests/simple_dungeon")) { // do stuff with evt.getTable() } } What specific thing I need to do with it?
  4. Yes, but since he/she wants an item that has the attribute of a sword but without attack damage, it will be an easier way to do it
  5. Mb I thought that images can explain more clear rather than words. I wont do that again
  6. you can override them once your iteminit extends ItemSword
  7. You can add on-hit effect here
  8. Vanilla ItemSword
  9. i dont know if it still work in 1.14 but in 1.12 in the yourblock.java, you use breakBlock().
  10. As title @SubscribeEvent public void lootLoad(LootTableLoadEvent evt) { if (evt.getName().toString().equals("minecraft:chests/simple_dungeon")) { evt.getTable().addPool(new LootPool(null, null, null, null, null))); } } for the arguments of LootPool, they should be net.minecraft.world.storage.loot.LootPool.LootPool(LootEntry[] lootEntriesIn, LootCondition[] poolConditionsIn, RandomValueRange rollsIn, RandomValueRange bonusRollsIn, String name) But I don't really understand what the arguments means and what they should be. Any reply will be appreciated
  11. You might missed some steps or downloaded the wrong files because in my Referenced Libraries there are 60+ files that end with .jar, not .io. Mine Referenced Libraries looks like this the location of the source code is in net package
  12. You can re-download the mdk, rename the file before you setup the workspace and eclipse. After that you just move the src folder to the new one and you should be fine.
  13. Last time that I happened to me is when I changed the folder's name after building the workspace. It normally means forge couldn't find the path of your mod. Have you rename any folder recently?
  14. May I have a look at your pickaxe json file and you should extend ItemPickaxe instead of Item if you are making a pickaxe
  15. Wow, they works! Thank you guys so much, Animefan8888 Ive subscribe to ur channel hope you can upload some nice tutorials, and jaminv thanks for all ur suggestions!
  16. How do I use it? Since I can't find something looks similiar
  17. Is copyItemStack(ItemStack stack) What Im looking for?
  18. i know all the codes are messy because Ive been working on these for quite a long time, how I wrote these code is basically read other mod's source code, but different mod had different setups, which makes me really confused. In the update() function, I tried multiple times to get it to work, so it's really messy but works. For me, the primary target is to make everything to work and then the efficient of the code runs. Thank you for you patients and all replies. I will record a video and what the problems looks like. And no, the code on the github is the latest Edit: Here is the video As you can see, 2 aluminium bars can produce a aluminium plate. To test the bug, I put 4 aluminium bars into the left workbench, which produces 2 plates, and I put 2 bars into the right one, which should produce only 1 plate, but in the vd, they share the results.
  19. Is it only apply on tileentity class or include block class as well?
  20. As title, my custom furnace (with 3 inputs and 1 output) will sync all the custom furnace automatically. When one of the furnaces finish cooking, all the output slot of each custom furnace in the world will add by one. any reply will be appreciated Github https://github.com/poopoodice/Last-Day-on-Earth
×
×
  • Create New...

Important Information

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