Forum


Notifications
Clear all

Comands that you may want to know

(@koupah)
Active Member

Commands you may want to know

Edit: Here is a download for a tutorial I created to show off randomization with chests.
http://www.mediafire.com/file/2vxmyoz6x8jcf0z/Randomization%20w_%20Armor%20Stands.mcworld

Key:
(needed)

Basic:
/enchant (who) (what) (level)
example:
/enchant @p sharpness 5

/setblock (x) (y) (z) (block)
example:
/setblock 10 ~ 4 redstone_block

/tp (where/who)
examples:
/tp @a @p
/tp @p 24 10 30

/say (message)
example:
/say Hello

/msg (player) (message)
example:
/msg @r You have been randomly selected!

Advanced:
/clone (starting x) (starting y) (starting z) (end x) (end y) (end z) (to x) (to y) (to z)
* = only to be used when using filtered mode
example:
/clone 1 3 1 3 6 3 50 1 50 replace normal

/execute (target) (x) (y) (z) (command/detect)
* = only to be used when using detect
examples:
/execute @e ~ ~ ~ /say Hello!
(Makes all entities say "Hello!" in the chat)
/execute @e[type=item] detect ~ ~-1 ~ dirt 0 kill @s
(Makes all items above dirt blocks kill themselves)

/fill (starting x) (starting y) (starting z) (end x) (end y) (end z) (block)
* = only to be used when using replace function
examples:
/fill 1 1 1 9 9 9 redstone_block 0 hollow
(makes a hollow square between x1 z1 and x2 z2)
/fill 0 0 0 10 20 15 air 0 replace dirt 0
(replaces all dirt with air within those coordinates)

/effect (target) (effect)
example:
/effect @a invisibility 60 0 true
(gives everyone invisibility 1 for 60 seconds and hides the particles)
* = When inputting level remember that the level will be the number you put + 1. For example /effect @a speed 30 4 will give everyone speed 5

This is not all the possible commands but a small sum. Stay tuned for more posts!

This is all I am putting up for now!
If you need any help with commands or have an idea but need help completing the idea then feel free to reply to this thread or better yet send me a private message and I will get back to you as quick a I can.

-Koupah

Quote
Topic starter Posted : 17/02/2018 10:09 pm
(@redfury545)
Active Member

Is there a way to make a randomized loot placement system for use in a fortnite/pubg style of map
so every time you start the game items spawn around the map

ReplyQuote
Posted : 18/02/2018 4:00 pm
(@koupah)
Active Member

"Is there a way to make a randomized loot placement system for use in a fortnite/pubg style of map
so every time you start the game items spawn around the map"

There most definetly is a way to do this. Depending on how many item variations you want you need to place chests. I recommend going to your Redstone area of your map, finding a blank spot and placing down a chest every second block. Once you have placed one chest for every combination of loot you would like then place an armor stand above each of the chests. The armor stand will automatically fall 0.1 blocks and will act as if it's location is inside the chest therefore using ~ ~ ~ will assume it is in the same spot as the chest (the chest is not a full vertical block). Now the command you will want for a random chest is

execute @r[type=armor_stand] ~ ~ ~ clone ~ ~ ~ ~ ~ ~ x y z

Change that command and have x y z as your own coordinates. Now all you have to do is use another command block and do whatever you want with your randomly selected chest/loot. If you clone the already cloned chest to a random area then using the fill or setblock command you can destroy the chest and the items will drop.

If you need any clarification or if I didnt make sense and I'll try again as I have written this whole thing on my phone.

ReplyQuote
Topic starter Posted : 18/02/2018 4:48 pm
(@redfury545)
Active Member

Is there any way you could visible show me because i didn't really grasp the concept.:)

ReplyQuote
Posted : 19/02/2018 12:59 pm
(@koupah)
Active Member

Due to what appears to be different timezones (I am Australian) I doubt I can show you in a live chat of sorts but alas I can give you this world to look at to further understand the concept.

Here you go: http://www.mediafire.com/file/2vxmyoz6x8jcf0z/Randomization%20w_%20Armor%20Stands.mcworld

Ill also be attaching this world to my original post for others to see!

ReplyQuote
Topic starter Posted : 19/02/2018 6:56 pm
(@ctrlaltcuteness)
Active Member

Suggestions for layout:
Remove the centering…
use CODE blocks to surround the code. (Do a "Reply with Quote" to see what I typed.)

/tp - Teleport player(s) and / or entities.

1: /tp  (position#2)
2: /tp  (target#2)

1: player(s) / entity(-ies) (defaults to @s) gets teleported to (position#2)
2: player(s) / entity(-ies) (defaults to @s) gets teleported to player / entity (target#2)

Also make sure below the message entry field that "Automatically parse links in text" is UNchecked while "Disable smilies in text" IS checked.

-- Added by noticing the /effect command --
Set the effect time to 0 aka zero, and leave out the others after it to remove that exact effect only.

ReplyQuote
Posted : 20/02/2018 1:59 pm
(@redfury545)
Active Member

Due to what appears to be different timezones (I am Australian) I doubt I can show you in a live chat of sorts but alas I can give you this world to look at to further understand the concept.

Here you go: http://www.mediafire.com/file/2vxmyoz6x8jcf0z/Randomization%20w_%20Armor%20Stands.mcworld

Ill also be attaching this world to my original post for others to see!

ok thanks you

ReplyQuote
Posted : 20/02/2018 4:04 pm
(@koupah)
Active Member

Suggestions for layout:
Remove the centering…
use CODE blocks to surround the code. (Do a "Reply with Quote" to see what I typed.)

/tp - Teleport player(s) and / or entities.

1: /tp  (position#2)
2: /tp  (target#2)

1: player(s) / entity(-ies) (defaults to @s) gets teleported to (position#2)
2: player(s) / entity(-ies) (defaults to @s) gets teleported to player / entity (target#2)

Also make sure below the message entry field that "Automatically parse links in text" is UNchecked while "Disable smilies in text" IS checked.

-- Added by noticing the /effect command --
Set the effect time to 0 aka zero, and leave out the others after it to remove that exact effect only.

Thank you for the feedback, I really do appreciate it. I will take into consideration what you have said and my next post will reflect on that. I am happy that someone has gone out of their way to give me feedback like this.

ReplyQuote
Topic starter Posted : 20/02/2018 6:16 pm
(@ctrlaltcuteness)
Active Member

Thank you for the feedback, I really do appreciate it. I will take into consideration what you have said and my next post will reflect on that. I am happy that someone has gone out of their way to give me feedback like this.

Sorry, I try. ^w^;

Edit: When using /execute, the command to be used should be WITHOUT a leading /.

Example:

/execute @a ~ ~ ~ tp @e[type=item,r=1,c=1] @r
ReplyQuote
Posted : 12/03/2018 12:00 pm
Share: