#help me do my smelting script please

1 messages · Page 1 of 1 (latest)

civic sable
#

on right click on blast furnace:
cancel event
if event block has metadata value "used"
cancel event
else:
if player's tool is raw iron:
set block data tag "lit" of event-block to true
set metadata value "used" of event-block to true
remove raw iron from player
wait 5 seconds
give player iron ingot

#

theres errors

#

3 adn 5

raw finch
#

you forgot a colon at the end of line 3; then 5 should clear itself

civic sable
#

on right click on blast furnace:
cancel event
if event block has metadata value "used":
cancel event
else:
if player's tool is raw iron:
set block data tag "lit" of event-block to true
set metadata value "used" of event-block to true
remove raw iron from player
wait 5 seconds
set block data tag "lit" of event-block to false
give player iron ingot

raw finch
#

event-block (you forgot the hyphen)

honest pathBOT
#

x8ight suggests that you read this embed

Formatting Code In Discord
Why?

Code blocks make it easier for helpers to identify potential errors -- help them help you!

The Format

```vb
on chat:
broadcast "This is how you format code!"
```

How It Looks
on chat:
    broadcast "This is how you format code!"
Extra Info

On US keyboards, the grave character (`) is located above the tab key on the top left of the keyboard

sage sedge