Jump to content
  • 0

Auto compress when a custom item is held


Abogen

Question

So basically I need a auto compressor skript, so when your holding a custom item like a conduit named wood compressor in your offhand then it will compress all your wood into compress wood. if anyone could make this skript that would be much appreciated.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
1 hour ago, Abogen said:

So basically I need a auto compressor skript, so when your holding a custom item like a conduit named wood compressor in your offhand then it will compress all your wood into compress wood. if anyone could make this skript that would be much appreciated.

Try something like this:

 

on pickup:
	if player's inventory contains 32 plain oak log:
		if slot 40 of player's inventory is conduit named "Wood Compressor":
			remove 32 plain oak log from player's inventory
			give player shiny oak log named "&eCompacted Wood" # shiny expression may require SkJade or SkQuery

 

 

 

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

 

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