Jump to content

Recommended Posts

Posted

Hi i am trying to make a mod for my server 1.7.2 for me and my friends. for commands

 

i have gotten /heal, /Repair and /hunger working but i cant find anything online about how to get /sethome , /home , /back or /bed

and idea how i would go about added these commands?

 

Thanks

Posted

When the player uses the /sethome command, I would store the current player's coordinates in the player's persistent nbt tag, and then teleport the player to those coordinates when they do the /home command.

 

Same goes with /back. When the player dies, I would store the player's coordinates in the player's persistent nbt tag, and then teleport the player to those coordinates when they do the /back command.

 

For the /bed command, just get the bed's coordinates through the player.

Kain

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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