-
Notifications
You must be signed in to change notification settings - Fork 2
Behavior List
There are currently 12 right click behaviors built into the mod. Most behaviors are highly customizable, and all possible fields are explained in each section.
If you are interested in adding your own right click behaviors, you can read about how to do that here: Adding Custom Behaviors
Shoots a certain amount of arrows up into the air.
"behavior": {
"type": "obtrophies:arrow",
"amount": 5,
"effect": "minecraft:strength"
}
-
amount
: the amount of arrows the trophy shoots upwards when right clicked. (optional, defaults to 1) -
effect
: the effect the arrow(s) should be tipped with (optional)
Shoots an ender pearl up into the air.
"behavior": {
"type": "obtrophies:ender_pearl"
}
Creates an explosion around the trophy.
"behavior": {
"type": "obtrophies:explosion",
"power": 2.5,
"destructive": false
}
-
power
: the strength of the explosion. Higher numbers do more damage. -
destructive
: whether or not the explosion should damage the terrain around it, similar to TNT.
Adds an item to player's inventory.
"behavior": {
"type": "obtrophies:item",
"cooldown": 10000,
"item": {
"Count": 5,
"id": "minecraft:nether_star"
},
"sound": {
"sound_id": "minecraft:block.anvil.land"
}
}
-
cooldown
: the time, in ticks, it takes until the trophy can give you another item. (optional) -
item
: the item and count the trophy should give -
sound
: the sound that should play when an item is given (optional)
Creates a phantom Elder Guardian that floats across the player's screen.
"behavior": {
"type": "obtrophies:guardian_curse"
}
Shoots Llama spit up into the air.
"behavior": {
"type": "obtrophies:llama_spit"
}
Rolls a loot table and gives the items to the player.
"behavior": {
"type": "obtrophies:loot_table"
"cooldown": 30000,
"loot_table": "minecraft:gameplay/fishing/treasure"
"rolls": 2
}
-
cooldown
: the time, in ticks, it takes until the trophy can give you another loot table roll. (optional) -
loot_table
: the loot table that should be rolled. -
rolls
: the amount of times the loot table should be rolled per right click. (optional, defaults to 1)
Applies a mob effect the player.
"behavior": {
"type": "obtrophies:mob_effect",
"amplifier": 2
"effect": "minecraft:regeneration",
"time": 200
}
-
amplifier
: the amplifier for the mob effect. (optional, defaults to 0) -
effect
: the name of the mob effect that should be applied. -
time
: the time, in ticks, the effect should be applied for.
Places blocks in certain configurations around the trophy.
"behavior": {
"type": "obtrophies:place_block",
"block": {
"Name": "minecraft:campfire",
"Properties": {
"lit": "false"
}
},
"method": "around"
}
-
block
: the block that should be placed. You can also define blockstate properties in here. -
method
: the placement method for the blocks. There are 4 possible values you can put here: -
above
: places a block above the trophy. -
around
: places blocks in all cardinal directions and all diagonals around the trophy. -
cross
: places blocks in all cardinal directions around the trophy. -
encase
: places a 3x3x3 area of blocks around the trophy.
Executes a different behavior when right clicked with a certain item.
"behavior": {
"type": "obtrophies:right_click_item",
"cooldown": 20000,
"execute_behavior": {
"type": "obtrophies:item",
"item": {
"Count": 1,
"id": "minecraft:honey_bottle"
}
},
"item_to_use": {
"Count": 1,
"id": "minecraft:glass_bottle"
},
"shrink_item_stack": true,
"sound": {
"sound_id": "minecraft:item.bottle.fill"
}
}
-
cooldown
: the time, in ticks, it takes until the trophy can be right clicked with another item. (optional) -
execute_behavior
: a behavior that should happen when right clicked with a valid item. (optional) -
item_to_use
: the item the trophy should be clicked with to make the behavior happen. This can either be an itemstack or an item tag. -
shrink_item_stack
: whether the item should be consumed when right clicking. -
sound
: the sound that should play when an item is used (optional)
Sets the player on fire for a certain number of seconds.
"behavior": {
"type": "obtrophies:set_fire",
"seconds": 4
}
-
seconds
: the amount of seconds the player should remain on fire after right clicking the trophy.
Creates the Totem of Undying visual on the player's screen.
"behavior": {
"type": "obtrophies:totem_of_undying"
}