Jump to content

BusyBeever

Members
  • Posts

    201
  • Joined

  • Last visited

Everything posted by BusyBeever

  1. Im not sure if it is part of the problem, but i am always using lower case letters for the json stuff
  2. You should open a new thread for it, this is getting outta control
  3. Alright. This might be an excellent use for Capabilties. You can create one single Capability (CapabilityPlayerStorage? I should stop naming stuff). After that you can give ur special item, your special block/chest/furnace the capability (for block it will only work if it is a tileentity I think) the Capability and store the information inside of it. I think for the thing with the bed you will need some kind of worldsaveddata, since you cant store information directly inside the vanilla bed
  4. Okay im not sure what exactly you want. Are we talking about tileentities(te) inside a te (title) or are we talking about a te inside an entity (post)? Anyway. You shouldn't store a TileEntity ANYWHERE. Just store the position of the te as variable (blockpos) and get it via world#getTileEntity everytime you need it
  5. you need to store the position in the items nbttagcompound
  6. either pack it inside ur jar file or add it separately to ur mods folder
  7. Depends on what "anti griefing" means for you? Make a list of it and start watching how to implement it
  8. One way to do it for sure would be to use the PlayerUpdate event, check each wearn armor item if it has ur capability, if it has call the update method. I dont think you can do this without using events
  9. chunkCoord is the chunk the player is in. You dont want that. You want his position (posX,posY,posZ)
  10. you shall pass this argument to the method Blocks.fire.SetFireInfo instead ofModBlock.CustomBlock
  11. https://docs.oracle.com/javase/tutorial/java/javaOO/thiskey.html
  12. by the time you call that modBlock.CustomBlock will be null. Call setFireInfo using this
  13. I think SPacketSoundEffect should be the thing youre looking for
  14. Why are u coding in scala and not java? Anyway my guess would be that you arnet registering the tile entity, thats why it wont get reloaded when loading from disk. show ur registration of the te?
  15. Yeah the new json stuff can be pretty painful.. If you want I can share my automation script for making jsons and stuff (it works for items, blocks need a bit of fixing right now) Try making the mod part by mod. If the mod is big try splitting it into smaller parts and try to finish one so u have a success sometimes with finishing of a part Helps a lot with staying motivated! If you have any questions just ask!
  16. Okay ill give u a helpful warning. Dont insult moderators
  17. would u mind to post the class mc is complaining about
  18. Maybe there went something wrong while repacking? Is the path inside the jar correct?
  19. 1. Please follow java naming conventions 2. registering items should be done in init
  20. Which version of 1.8 are you using? If you are developing for 1.8.9 you should not use IInventory, but Capabilities
  21. If you have a request please add the version to it
  22. if(event.getEntityPlayer().worldObj.isRemote) return;
  23. Hey everyone, I am not sure if I stumpled upon a bug or if i did sth wrong, but my RightClickBlock event is firing twice. The syso gets printed two times on the console. if(event.getEntityPlayer().worldObj.isRemote) return; if(!event.getEntityPlayer().capabilities.isCreativeMode) return; ItemStack selected = event.getEntityPlayer().inventory.getCurrentItem(); if(selected!=null && selected.getItem()==Items.stick) { System.out.println(event.getPos());
×
×
  • Create New...

Important Information

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