Translations:Modding:Advanced Items/25/en

From Vintage Story Wiki
Revision as of 14:17, 24 March 2024 by FuzzyBot (talk | contribs) (Importing a new version from external source)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

We need to be aware of the facing (which side the player is focusing) and if the player is in creative or survival mode (whether items should be dropped or not). Before we are going to override OnBlockBrokenWith we should create a method which destroys all blocks between two block positions (min & max). It should also only drop items if the player is in survival mode: