Item removal from world

Post Reply
loosewheel
New member
Posts: 9
Joined: Mon Dec 28, 2020 01:19
In-game: loosewheel

Item removal from world

by loosewheel » Post

Is it possible to detect when an item is disposed of? That is when it's trashed or is removed from the world after being dropped. Not when a node is dug or an item is dropped.

User avatar
Nathan.S
Member
Posts: 1065
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21
Location: Bigsby Texas
Contact:

Re: Item removal from world

by Nathan.S » Post

You can probably detect when a player puts an item into the trash inventory in creative, or any sort of a trash bin mod, using inventory callbacks. By overriding the /pulverize command you could also put detection in. Not so sure about when a dropped object is deleted.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website, and brand new Minetest Modding Course

loosewheel
New member
Posts: 9
Joined: Mon Dec 28, 2020 01:19
In-game: loosewheel

Re: Item removal from world

by loosewheel » Post

Thank you.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests