Skip to content

Advanced Gravestone

Ethan Costa edited this page Oct 9, 2024 · 5 revisions

You should read the Basic Gravestone page first 😉

The Structure

{
  "id": "graveyards:rising_of_the_dead",
  "level": 1,
  "mod_required" : "minecraft"
  "monsters": [
    {
      "type": "minecraft:zombie",
      "attributes": [
        {
          "attribute": "minecraft:generic.movement_speed",
          "value": 0.3
        },
        {
          "attribute": "minecraft:generic.scale",
          "value": 1.6
        },
        {
          "attribute": "minecraft:generic.attack_damage",
          "value": 4.5
        }
      ],
      "items": [
        {
          "item": {
            "count": 1,
            "id": "minecraft:iron_sword"
          },
          "slot": "mainhand"
        }
      ]
    },
    {
      "type": "minecraft:zombie"
    }
  ],
  "rewards": {
    "experience": 3,
    "loot_table": "minecraft:chests/simple_dungeon"
  },
  "actions": [
    "graveyards:set_night"
  ]
}

mod_required : the mod that is required for the gravestone to be started

attributes : a list of MonsterAttribute

MonsterAttribute

attribute : the resourcekey of the attribute you want to modify. You can find all the attributes here : https://minecraft.wiki/w/Attribute#Attributes

value : the value you want to set. This value will be the base value of the entity.


items : a list of MonsterItem

MonsterItem

item : the Itemstack. You can use this https://misode.github.io/loot-table/ (the entries part) to generate item with custom components, enchantment and more

slot : the EquipmentSlot where the item will be equipped. Possible values : mainhand, offhand, feet, legs, chest, head and body.


actions : a list of ResourceKey of GravestoneActions (The default ones can be seen here : https://github.com/TathanDev/Graveyards/wiki/Gravestone-Actions#default-available-actions )

Custom Win Message

You can create a custom win message. You can add theses args in your message : player name and gravestone_level. The your_modid and your_gravestone should be the same as your resourcelocation (id).

  "gravestone.your_modid.your_gravestone": "Congrats %s ! You defeated this level %s gravestone !",

Clone this wiki locally