Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. use BreakSpeed event, check if the player is using bare hands, if he does set speed to 0
  2. For creating custom dimensions, I THINK but I really have no idea, that dimensions didnt change that much so a 1.64 tutorial could help u if u know some basics that changed (like BlockPos) http://www.minecraftforge.net/forum/index.php?topic=19799.0
  3. send a packet from client to server side that u want the teleport. on server side this code is what u want Teleporter is the EntityPlayerMP teleporter.mcServer.getConfigurationManager().transferPlayerToDimension(teleporter, dimensionToGo); teleporter.playerNetServerHandler.setPlayerLocation (posX, posY, posZ, teleporter.rotationYaw, teleporter.rotationPitch);
  4. maybe you can add a tag to the player when he starts hitting, in the death event check for the tag and remove it, so you know who should be the one not taking damage
  5. U should be using LivingHurtEvent, check if the damage source is a lightning and if the entity taking damage is the attacker, if it is dont damage him
  6. to write a string array do the following: write the size of the array to the buf. after that write each string to the buf. to read it. read the size of the array from the buff for(i=0; i<size;i++) read the string
  7. only your src folder shd be in ur git
  8. Really? You never click an item and put it in any of the other 30 some slots in your inventory? You always place it in your current slot? I don't think I ever put it in my current slot, as I'm usually already carrying something. Sorry, but I don't think using any kind of ticking event is the answer to this question. agreed. I still cheer for readding the recipes if its only a couple
  9. True that but to be honest I dont think that there is another way..
  10. http://www.minecraftforge.net/forum/index.php/topic,23133.0.html There you go! Using this technique u can make recipes that can only be crafted under specific circumstances! Should be exactly what u want! Go and bumb diesieben's karma up, he did a great job there
  11. There is a way to restrict recipes for certain player. diesieben07 has a tutorial on how to do that, I already used it once and it worked like a charm. gimme a second to find it..
  12. Any errors in the console? they could provide some help.
  13. try writing all in lower case and put the json inside models/item/pipe/pipe01.json. Im not sure if this will work so dont blame me
  14. I am glad to help Sorry for the wrong information with the packets tho :'D
  15. I am not sure and got no IDE by hands so I need to guess out of my mind.. it SHOULD be something like detectChangesAndUpdate. Also important should be sth like addCraftingToCrafters
  16. are u registering the item renderer? in u proxy with the ItemModelMesher
  17. i just realized that there are better ways to do that, sorry. Whenever you open a guicontainer u already got a pipeline to send informations, so no need to use packets, my bad. u should take a look how the furnace is syncing the values, should be GuiFurnace there is some stuff about updating the variables
  18. aaaaah i got it. u arent syncing the values between client and server, which isnt an issue when it was static, because client and server was in the same machine. but now the values arent static, so u need to manually sync the values between client and server side if u want to display them, which means that u will need to use packets EDIT: http://www.minecraftforge.net/forum/index.php?topic=20135.0
  19. Never worked with RF API but i will give it a try. Show whole code, code taken out of context wont help any1
  20. http://www.javatpoint.com/static-keyword-in-java Hint of the day : Learn java!
  21. modids are unique identifier for ur mod. thats their purporse and thats it. make them lowercase, i think numbers should also be fine
  22. "layer0": "cf:butcher_knife/butcher_knife" is the problem. i think it should be "layer0": "cf:items/butcher_knife"
  23. I dont know who is telling people to register items by their unlocalized names, not the first time we see this here.. gimme a second to read through, should be a simple mistake
  24. show ur clientproxy
×
×
  • Create New...

Important Information

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