Jump to content

Recommended Posts

Posted

I need a compress skript that when you right click on a piston you compress all your blocks into a block called &(COLOR)Compressed (NAME)
if you can add like # (this is how you do it etc) it would be helpful

 

Posted
On 5/1/2022 at 11:50 AM, thatonecrombii said:

I need a compress skript that when you right click on a piston you compress all your blocks into a block called &(COLOR)Compressed (NAME)
if you can add like # (this is how you do it etc) it would be helpful

 

Untested but works in parser.skunity.com

options:
	color: e

on rightclick on piston:
	loop items in player's inventory:
		loop-item is a block
		if player has 64 of loop-item:
			remove 64 of loop-item from player's inventory
			give player 1 of loop-item named "&{@color}Compressed %loop-item%"
			set {_compresseditems} to true
	if {_compresseditems} is set:
		send "&eCompressed Blocks!" to player
	else:
		send "&aCouldn't find anything to compress!" to player

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Posted
18 hours ago, AgentGamerPro said:

Untested but works in parser.skunity.com

options:
	color: e

on rightclick on piston:
	loop items in player's inventory:
		loop-item is a block
		if player has 64 of loop-item:
			remove 64 of loop-item from player's inventory
			give player 1 of loop-item named "&{@color}Compressed %loop-item%"
			set {_compresseditems} to true
	if {_compresseditems} is set:
		send "&eCompressed Blocks!" to player
	else:
		send "&aCouldn't find anything to compress!" to player

 

I have tested this and found out it doesnt work but only when your right click on a piston when theres that item in your inv

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...