Scavenge

Scavenge

2M Downloads

consume_player_items not working

DevTimur opened this issue ยท 2 comments

commented

Version: Scavenge+V1.12-1.8.3.2.jar
Command: consume_player_items

Here is error log
https://pastebin.com/QvYxpubB

Not sure am I correct, but...
scavenge.player.blockEffects.PropPlayerConumeItems.applyEffects is spelled wrong, maybe that's the reason?

commented

Here is my code

{"block_pools" :
	[{
		"name":  "welder",
		"type": {"type": "block", "name": "contenttweaker:welder"},
		"clicktype": "rightclick",
		"properties":	[	
			{"type": "require_sneak", "sneak":true, "disableJEI": true},
			{"type": "player_has_items", "items":[{"name":"minecraft:stick", "meta": 0, "amount":5}], "disableJEI": true},
			{"type": "consume_player_items", "items":[{"name":"minecraft:stick", "meta": 0, "amount":5}], "disableJEI": true},
			{"type": "swing_hand", "disableJEI": true},
			{"type": "play_sound","name": "projecte:item.peheal", "disableJEI": true}
		],
		"drops":[],
		"messages": [{	
				"id": "require_sneak", "disableJEI": true,
				"message": "Sneak to repair ship."
			},
			{	
				"id": "player_has_items", "disableJEI": true,
				"message": "You need some tools."
			},
			{	
				"id": "success",
				"message": "You've done it!"
			}]
	}]
}
commented

You found a bug in the code that I am sadly not able to fix.
(I don't have the sourcecode for 1.12 or older anymore)

Basically consume player items is not useable at this point :/ sry.