Jump to content

Auto Compressors and Infinite Items


majortanner

Recommended Posts

on consume of steak:
	if name of player's tool is "&6Infinite Steak":
		set player's tool to steak named "&6Infinite Steak"
		
on rightclick:
	if player's tool is firework named "&6Infinite Rocket":
		wait 1 tick
		set player's held item to firework named "&6Infinite Rocket"
		
on mine:
	if player has 1 of brown dye named "&6Dirt AutoCompressor":
		set {_a} to amount of dirt in player's inventory
		if {_a} >= 64:
			set {_b} to round({_a} / 64)
			loop {_b} times:
				player has 64 dirt
				remove 64 dirt from player
				give 1 grass block to player
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...