Paste #42931: Literate Programming

Date: 2017/07/07 17:53:26 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


@A@<Server@>

@O@<scripts/global.yml@>@{
common_world_stuff:
  type: world
  events:
    @<global events@>

@<items@>
@}

@B@<Temporary tweaks@>

Creepers are temporarily disabled.

@$@<global events@>+=@{
on creeper spawns:
  - determine cancelled
@}

Saddles are craftable!

@$@<saddle crafting recipe@>@{
  - i@@wool|i@@wool|i@@wool
  - i@@bone|i@@leather|i@@bone
  - i@@air|i@@air|i@@air 
@}

@$@<saddle item@>@{@-
saddle_craftable_item:
  type: item
  material: "329:0"
  display name: "<&8>Ass comforter"
  recipe:@<saddle crafting recipe@>

@}

@$@<items@>+=@{
@<saddle item@>
@}

@B@<Current world config@>

Squids are disabled perma due to connection errors.

@$@<global events@>+=@{
on squid spawns:
  - determine cancelled
@}

Never despawning items with exception of rotten meat.

@$@<global events@>+=@{
on item despawns:
  - if "<context.item.material>" != "m@@rotten_flesh" {
    - determine cancelled
  }
@}