Addional Triggers

Published by Azzier on Thu, 02/17/2022 - 10:05
Upvotes: 8
Supported MCreator versions
2022.1
Tags / plugin type
Global triggers
Procedures
MCreator plugin
About the plugin

Small plugin adding some global trigger(s).

Changelog

Current Triggers

  • Anvil Repair
  • Player stops using bow item
  • Player starts using bow item
  • Game sets levels in the enchanting table, trigger executed once for each row
  • Player's gamemode is changed
  • Player cloned (explanation: player dies and gets respawned or travels from end to overworld) 
  • Player attempts to harvest a block
  • Game check if player can harvest a block
  • Game checks if player is in bed

Notice: Player cloned can be used to copy data from "body" to respawned one, however for storing persistent data it is better to use global variables built in mcreator. 

Current Methods

  • Set BreakChance to NUMBER (Anvil repairs item only)
  • Set Charge to NUMBER (Player stops using bow item only)
  • Set enchant level to NUMBER (Game sets levels in the enchanting table only)
  • Set BreakSpeed to NUMBER (Player start harvest a block only) 
  • Set canHarvest to LOGIC (Game checks if player can harvest only)

 

Project members
Lead developer
License
GNU Lesser General Public License version 2.1 (LGPLv2.1)

Plugin downloads
Attachment Size
addional_triggers.zip26.39 KB 26.39 KB

Comments

Hey, do you think it would be possible to add procedures that edits the player attributes, like max health, speed, damage?