Jump to content

omk

Members
  • Posts

    6
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

omk's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I fixed it For anyone who was wondering: It works indeed in SMP, it was just idiot me testing a value that can be null, so I just wrapped the if statement in a try & check if the variable was null. the try was probably not needed(didnt get any exceptions in the log atleast), but good to have anyways It was abit strange that it happened nonetheless, because it crashed even if the variable would have a value. I guess its a safety measure somewhere.
  2. Hmmm, does player exist on server?(EntityPlayer) Just to make sure: With PlayerInteractEvent handler, you are refering to my getBlockUse method right?
  3. Bah, sorry my mistake. here is the crash message from the client: the forgelog from the client: here is the forgelog from the server(from startup to crash):
  4. Hi, Ive made a mod which is meant as a customized creative mode in survival. The thought is that certain blocks are free to use and you dont run out of them. The mod works fine in single player and on lan play, but when used in smp the game crashes instantly when the player right clicks, the reason given is genericreason. I assume this is due to not being handled properly from a SMP perspective? How should I fix this? Packets? here is the mod class code:
  5. Hi, Ive been searching the code, documentation and the web for a few days now trying to find a way to detect when the player places out a block. I cant seem to find the way to do this in forge. Any1 who could point me in the right direction? Edit: Ive figured out a bit more: I want to use the World.addBlockEvent(), but Im having some problems understanding the event system. Getting a mod to use the event classes that are already defined I understand, but Im not sure how and where I would use World.addBlockEvent() to create an event when the player places out a block, and then understanding how to catch that event in a mod afterwards. Oh, and in case it would matter in terms of how to do this: Im planning on doing this for SMP. Edit2: Ok, I guess I should be abit more specific on what I want to achieve with the mod: Basically I want a server mod that gives players creativemode access to certain blocks, even when in survival. The plan is to have a config file that keeps track of which blocks the server allows this behaviour on, then just +1 item count in inventory on those blocks when its count < 1(or something like that)
×
×
  • Create New...

Important Information

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