Welcome to the guide for freeze stick
- Make an new line with an diamond block
- Press the sign
- Select the sword
- Search for ‘damage player’
- Select that item
- Set on the first gray glass an if player
- Click the chest
- Select the chest again
- Make an freeze stick and put your stick in the chest
- Set in the ‘if player’ section an iron block
- Set general and =
- Take an dynamic variable from the iron ingot
- Name the dynamic variable ‘%victim%_frozen’
- Put the dynamic variable in the chest from the iron block
- Take from the iron ingot an text
- Say in the chat ‘yes’ while holding the item
- Put the yes book on the iron block chest under the white glass
- Now create an new diamond block on an new blue glass
- Click the skgn
- Select move 2 times (on the 2 tabs)
- Place then near the new line an obsidian (if variable)
- Click the sign
- Select =
- Take an dynamic variable from the iron ingot
- Say while holding the variable ‘%player%_frozen’
- Take from the iron ingot an text variable
- Say while holding the item ‘yes’
- But the text book under the white glass
- But the variable under the orange glass
- Set in the pistons an game action
- Select the redstone compater
- Select ‘cancel event’
- Now test it!
How to code unfreeze?
- You have already an diamond block for damage player, use that line for it
- Place an if player
- Click the sign
- Select invertory ______
- Select holding item
- Make now an unfreeze stick
- Put your stick in the chest
- Place an variable
- Click the sign
- General
- =
- Take an dynamic variable
- Say in the chat while holding the variable ‘%victim%_frozen’
- Take from the iron ingot an text variable
- Say while holding the variable ‘no’
- But the text variable under the white glass
- Put the dynamic variable under the orange glass
- You are done!