Course Curriculum
-
Getting Started
Refilling Chests, Adding Lighting, Special Events, and Head Items
Here are some more commands to add to your scripts.
– light l@-189,66,-1595,questworld 10
Here are a few that can be added to world scripts. Remember to note the area first.
on script reload:
– note cu@24,60,100,questworld|cu@10,70,100,questworld as:examplechestarea
Then create the special effects. This next one refills chests with bones and rotten flesh.
on player opens inventory in examplechestarea:
– inventory set d:l@18,63,100,questworld o:i@rotten_flesh slot:5
– inventory set d:l@18,63,100,questworld o:i@bone slot:3
This next one creates the chance that when a player breaks a dandelion he gets a one in five chance of getting a special dandelion.
on player breaks dandelion:
– if <util.random.int[1].to[5]> > 4 determine i@SpecialDandelion
The next one creates a chance that when a player holds a special dandelion in her hand it will heal her but also crumble.
on player holds item:
– if <player.item_in_Hand.contains[i@SpecialDandelion]> {
– if <util.random.int[1].to[5]> > 4 {
– narrate “The dandelion cheers you and brings you strength. Unfortunately it falls apart in your hands.”
– heal 4
– take I@SpecialDandelion
}
}
If you want to include a special skull pattern for an object in your scripts, you need to look at a page such as https://minecraft-heads.com and find the “value” which will be an incredibly long, long list of letters and numbers. Copy that.
Model your script after this one:
mouse:
type: item
debug: false
material: player_head[skull_skin=b48e0db0-3c6d-4e11-9d1c-d43240135f56|eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzQzNmQ0YzM0ZTExNTEzOTIxMjFhMTNmODAyZjgwNjkxMDMxOWZiZjU5OGY3YjhhNGFhZTg0Yzc1YWUzNjI1In19fQ==]
display name: “Toy Mouse”
The quote marks around the display name are important.
