• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Wooden Crate Keys

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

Skylar

Staff Member
Community Team
#1
Command Name: WoodenCrate
Command (/command): /woodc
Description: Generates all wooden crate drops.
What does it do? You will need to use /action to put it on a chest. It will use up one of your wooden keys and pick a reward in the list of items. Very simple but maybe I made the command look a bit complicated.
1 load %woodc%
2 %player% = %args%[1]
3 if %woodc%[%player%] > 0 then goto 6
4 message %player% [ AH-Crate ] You do not have enough Wooden Keys
5 exit
6 %win% = random(1, 10)
7 %woodc%[%player%] = %woodc%[%player%] - 1
8 save %woodc%
9 if %win% = 1 then goto 100
10 if %win% = 2 then goto 200
11 if %win% = 3 then goto 300
12 if %win% = 4 then goto 400
13 if %win% = 5 then goto 500
14 if %win% = 6 then goto 600
15 if %win% = 7 then goto 700
16 if %win% = 8 then goto 800
17 if %win% = 9 then goto 900
18 if %win% = 10 then goto 1000
100 ascon /give %player% 274 1 {display:{Name:"Sturdy Stone Pickaxe
101 message %player% [ AH-Crate ] You won a Sturdy Stone Pickaxe!
102 exit
200 ascon /give %player% 274:58 1 {display:{Name:"Fragile Stone Pickaxe
201 message %player% [ AH-Crate ] You won a Fragile Stone Pickaxe. Better luck next time!
202 exit
300 ascon /give %player% 274 1 {display:{Name:"Sturdy Stone Pickaxe
301 message %player% [ AH-Crate ] You won a Sturdy Stone Pickaxe!
302 exit
400 ascon /give %player% 274:100 1 {display:{Name:"Broken Stone Pickaxe
401 message %player% [ AH-Crate ] You won a Broken Stone Pickaxe. Better luck next time!
402 exit
500 ascon /effect %player% 3 180 0
501 message %player% [ AH-Crate ] You won Haste I for 180 seconds!
502 exit
600 ascon /effect %player% 5 300 0
601 message %player% [ AH-Crate ] You won Strength I for 300 seconds!
602 exit
700 ascon /effect %player% 3 120 1
701 message %player% [ AH-Crate ] You won Haste II for 120 seconds!
702 exit
800 load %ahmoney%
801 %ahmoney%[%p%] = %ahmoney%[%p%] + 10000
802 save %ahmoney%
803 message %p% [ AH-Crate ] You won 10000 Dollars!
804 exit
900 load %ahmoney%
901 %ahmoney%[%p%] = %ahmoney%[%p%] + 5000
902 save %ahmoney%
903 message %p% [ AH-Crate ] You won 5000 Dollars!
904 exit
1000 load %ahmoney%
1001 %ahmoney%[%p%] = %ahmoney%[%p%] + 50000
1002 save %ahmoney%
1003 message %p% [ AH-Crate ] Jackpot ! You won 50000 Dollars!
P.S. %ahmoney% is basically m tokens for my server

Update on woodcrate command
Obtaining key while breaking blocks
1 if %gm% != 0 then exit
2 %chance% = r


The most simple way is to register with this command /woodreg 1 load %woodc% 2 %woodc%[%p%] = 0 3 save %woodc% 4 ascon /setuperm %p% -cmd.run.woodreg 5 message %p% You can now collect keys


And you can add a give command with random(1, 100) and put this on trigger break.


That means you will have a 1% chance of getting a key when mining. I’ll post the full command soon but I gtg now

Author: Αdamplayepic
 

NoYoursNo

Tree Puncher
#3
Command Name: WoodenCrate
Command (/command): /woodc
Description: Generates all wooden crate drops.
What does it do? You will need to use /action to put it on a chest. It will use up one of your wooden keys and pick a reward in the list of items. Very simple but maybe I made the command look a bit complicated.
1 load %woodc%
2 %player% = %args%[1]
3 if %woodc%[%player%] > 0 then goto 6
4 message %player% [ AH-Crate ] You do not have enough Wooden Keys
5 exit
6 %win% = random(1, 10)
7 %woodc%[%player%] = %woodc%[%player%] - 1
8 save %woodc%
9 if %win% = 1 then goto 100
10 if %win% = 2 then goto 200
11 if %win% = 3 then goto 300
12 if %win% = 4 then goto 400
13 if %win% = 5 then goto 500
14 if %win% = 6 then goto 600
15 if %win% = 7 then goto 700
16 if %win% = 8 then goto 800
17 if %win% = 9 then goto 900
18 if %win% = 10 then goto 1000
100 ascon /give %player% 274 1 {display:{Name:"Sturdy Stone Pickaxe
101 message %player% [ AH-Crate ] You won a Sturdy Stone Pickaxe!
102 exit
200 ascon /give %player% 274:58 1 {display:{Name:"Fragile Stone Pickaxe
201 message %player% [ AH-Crate ] You won a Fragile Stone Pickaxe. Better luck next time!
202 exit
300 ascon /give %player% 274 1 {display:{Name:"Sturdy Stone Pickaxe
301 message %player% [ AH-Crate ] You won a Sturdy Stone Pickaxe!
302 exit
400 ascon /give %player% 274:100 1 {display:{Name:"Broken Stone Pickaxe
401 message %player% [ AH-Crate ] You won a Broken Stone Pickaxe. Better luck next time!
402 exit
500 ascon /effect %player% 3 180 0
501 message %player% [ AH-Crate ] You won Haste I for 180 seconds!
502 exit
600 ascon /effect %player% 5 300 0
601 message %player% [ AH-Crate ] You won Strength I for 300 seconds!
602 exit
700 ascon /effect %player% 3 120 1
701 message %player% [ AH-Crate ] You won Haste II for 120 seconds!
702 exit
800 load %ahmoney%
801 %ahmoney%[%p%] = %ahmoney%[%p%] + 10000
802 save %ahmoney%
803 message %p% [ AH-Crate ] You won 10000 Dollars!
804 exit
900 load %ahmoney%
901 %ahmoney%[%p%] = %ahmoney%[%p%] + 5000
902 save %ahmoney%
903 message %p% [ AH-Crate ] You won 5000 Dollars!
904 exit
1000 load %ahmoney%
1001 %ahmoney%[%p%] = %ahmoney%[%p%] + 50000
1002 save %ahmoney%
1003 message %p% [ AH-Crate ] Jackpot ! You won 50000 Dollars!
P.S. %ahmoney% is basically m tokens for my server

Update on woodcrate command
Obtaining key while breaking blocks
1 if %gm% != 0 then exit
2 %chance% = r


The most simple way is to register with this command /woodreg 1 load %woodc% 2 %woodc%[%p%] = 0 3 save %woodc% 4 ascon /setuperm %p% -cmd.run.woodreg 5 message %p% You can now collect keys


And you can add a give command with random(1, 100) and put this on trigger break.


That means you will have a 1% chance of getting a key when mining. I’ll post the full command soon but I gtg now

Author: Αdamplayepic
Is the
if %gmc% != 0 then exit
%chance% = r
Meant to be in the same command as the crate?
 

MuntThee

Tree Puncher
#4
Dont use action that is a really bad plugin use the touch trigger on chests 😉
Code:
cmd create touch touch trigger
cmd add touch if %args%[1] != \"touch\" then exit
cmd add touch let %ll% = %args%[3]
cmd add touch let %xx% = %args%[4]
cmd add touch let %yy% = %args%[5]
cmd add touch let %zz% = %args%[6]
cmd add touch let %ye% = %yy% - 1
cmd add touch let %chest% = blockinfo(%ll%, %xx%, %yy%, %zz%)
cmd add touch if %chest%[\"id\"] != 54 then exit
cmd add touch if %chest%[\"name\"] != \"Crates\" then exit
cmd add touch let %un% = blockinfo(%ll%, %xx%, %ye%, %zz%)
cmd add touch if %un%[\"id\"] != 5 then exit
cmd add touch cancel
cmd add touch #addcommands you want to run
cmd trigger touch touch
This will only run if the chest has the name Crates and has a wood block below it
/give playername 54 1 {display:{Name:"Crates"}}