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

Siqhter

Members
  • Content Count

    149
  • Joined

  • Last visited

  • Days Won

    1

Siqhter last won the day on January 28 2019

Siqhter had the most liked content!

Community Reputation

4 Neutral

About Siqhter

  • Rank
    Creeper Killer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Have you taken a look at the code in your editor for other gen structures? Specifically in net.minecraft.village. This line caught my eye, not sure if it's really what your looking for. Have a look through that class, there should be some loot-generation code along the lines of what you're looking for.
  2. Yes, and this what is called "cargo cult programming". It works for one person, so then other people start copying it without thinking. (And yes, this happens to pretty much every beginner, myself included. It's how you learn. )
  3. You also have a FileNotFound for ruby.json. Are you sure you're directing it to the right path?
  4. This is the slot code used in my custom container class: If I remove the for loop and just make it a single row of 9 slots (like a hotbar) it works fine, I put the items in the hopper, they transfer to the chest, works great. When I create this for loop for another row above the first one, the items transfer from the hopper into the chest, but don't actually appear in the chest. The funny thing is, when I break the container, they do drop the items into the world just fine. I am pretty sure this is not a capabilities issue, because the for loop is the direct result of the mysterious dis
  5. So then how would I tell the "SlotCrafting" class, (or whichever class responsible) to look for the json?
  6. There's LivingHurtEvent and LivingAttackEvent. This sounds like what you're looking for.
  7. Ok, I was wondering about customization, and hardcoding it didn't seem quite right. Thanks.
  8. In the breakBlock method, loop through the inventory's slots. Create a new EntityItem in the for loop and then call spawnAsEntity. I think InventoryHelper#dropInventoryItems wants an IInventory, which probably won't work in your case. This is somewhat how I did it, and I use ItemStackHandler.
  9. Ok thanks. I have just been told to use an itemstackhandler and not use the vanilla "IInventory". I'll look through the git some more.
  10. Thanks for the response, just to clarify it looks like you're using IInventory? Would it look much different to use IItemStackHandler? I just noticed this in your TileEntity as well as your container. 2nd question is, when you're adding a recipe, are you actually hardcoding that in the recipes java class, or do you then define it in json format?
  11. Basically I'm trying to create a crafting system, where instead of creating a shape and getting a result in the 3x3 table, you open up the custom interface, put the two items in their respective slots and get the output. (e.g., instead of surrounding an apple with gold, put the gold in the first slot, apple in the second, and the result is a golden apple.) I've taken a look at ContainerWorkbench, but what really is the proper way to create a "crafting" slot that looks specifically for two items and provides you with a result? I already have the interface working, gui, tileentity (w
  12. instead of item/generated in your item json.
×
×
  • Create New...

Important Information

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