-"Bob":
+Bob:
type: assignment
interact scripts:
- 10 Builder
- actions:
on assignment:
- trigger name:proximity toggle:true
- lookclose state:true
-"Builder":
+Builder:
type:interact
steps:
1:
proximity trigger:
entry:
script:
- - if <player.inventory.contains[darkoak_log].qty[10]>
+ - if <player.inventory.contains[darkoak_log].qty[10]> {
- {
- chat "Thank you for collecting the 10 logs I needed for your house"
- execute as_npc "builder <npc.id> load house1"
- execute as_npc "builder <npc.id> origin schematic"
- execute as_npc "builder <npc.id> build"
- } else {
+ }
+ else {
- chat "Could you fetch me 10 dark oak logs please?"
- chat "in this chest is an axe you can use"
- }
+ }