Paste #118615: CocaCola & Mentos

Date: 2023/12/16 06:35:27 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


mentoscraft:
  type: item
  debug: false
  material: prismarine_crystals
  display name: Mentos
  allow in material recipes: false
  flags:
    mentos: <util.random_uuid>
  recipes:
    1:
      type: shaped
      output_quantity: 3
      input:
          - air|sugar|air
          - sugar|honeycomb|sugar
          - air|sugar|air

colacraft:
  type: item
  debug: false
  material: potion[potion_effects=[type=INSTANT_HEAL;upgraded=false;extended=false]]
  display name: CocaCola
  allow in material recipes: false
  flags:
    cola: <util.random_uuid>
  recipes:
    1:
      type: shaped
      output_quantity: 1
      input:
          - air|cocoa_beans|air
          - air|honeycomb|air
          - air|sugar|air

cola_click:
  type: world
  debug: false
  events:
    on player right clicks block:
      - if <context.location||null> == null:
        - stop
      - if <player.item_in_hand.has_flag[cola]>:
        - spawn armorstandcoca at:<context.location>
        - take iteminhand

armorstandcoca:
  type: entity
  debug: false
  entity_type: armor_stand
  mechanisms:
    visible: false
    gravity: false
    is_small: true
    marker: true
    equipment:
      helmet: black_candle