Jump to content

auto compress skript


Sepncer

Recommended Posts

 

You need skRayFall for the 'shiny' item effect

Just copy and paste the if statement and what is below and replace cobblestone with your item

This is not tested, but it should work

 

on pickup:

    if player's inventory contains 32 cobblestone:

        remove 32 cobblestone from player's inventory

        give player shiny cobblestone named "&eCompacted Cobblestone"

 

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

12 hours ago, Gam3rBoi said:

 

You need skRayFall for the 'shiny' item effect

Just copy and paste the if statement and what is below and replace cobblestone with your item

This is not tested, but it should work

 

on pickup:

    if player's inventory contains 32 cobblestone:

        remove 32 cobblestone from player's inventory

        give player shiny cobblestone named "&eCompacted Cobblestone"

a slight problem though it doesnt stack if i have a compressed in my inventory and the gain 32 cobblestone it will delete the old compressed one and replace it

 

 

12 hours ago, Gam3rBoi said:

 

 

Link to comment
Share on other sites

I will have to test it later and fix it. Meanwhile, you could try

remove 32 cobblestone named "&fCobblestone" from player's inventory

I don't really know how to fix this right now, so this is my best guess

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

7 hours ago, Gam3rBoi said:

I will have to test it later and fix it. Meanwhile, you could try

remove 32 cobblestone named "&fCobblestone" from player's inventory

I don't really know how to fix this right now, so this is my best guess

skript added a new expression called "plain item"

 

on pickup:
    if player's inventory contains 32 plain cobblestone:
        remove 32 plain cobblestone from player's inventory
        give player shiny cobblestone named "&eCompacted Cobblestone"

 

 

 

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

Oh cool. Didn't know that

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

this skript works but creates a different problem it wont remove the shiny cobble but it will now not remove the normal plain cobblestone so every block after 32 gives me another shiny. i have no idea why it wont remove the cobble. thanks for your help

on pickup:
    
    if player's inventory contains 32 cobblestone:
        
        remove 32 plain cobblestone from player's inventory
        
        give player shiny cobblestone named "&eCompacted Cobblestone"

Link to comment
Share on other sites

on pickup:
    set {_item} to 1 of shiny cobblestone
    if player's inventory contains 31 of cobblestone:
        remove 32 of plain cobblestone from player's inventory
        give player {_item}

#can be made easier if u dont want to use {_item}
#instead of {_item} use give player 1 of shiny cobblestone

Edited by TheDocs_
  • Thanks 1
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...