Jump to content
  • 0

i need help fixing a code pls


antman2008

Question

5 answers to this question

Recommended Posts

  • 0
9 minutes ago, antman2008 said:

the creator of the code was being of no help and i now need it. relply if you are a coder or can help. 

Maybe send the code/skript?

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

  • 0
On 7/31/2021 at 10:44 PM, NotKaizo said:

Maybe send the code/skript?

it is this code

set {_n::*} to {16 iron block}

set {_m::*} to {1 of glowing iron block}

loop {_n::*}:

while {_p} has loop-value:

remove loop-value from {_p}'s inventory

give {_p} {_m::%loop-index%}

set {_s} to true

it is for compressing items 

the creator was being so mean to me when i asked him to help

Link to comment
Share on other sites

  • 0
16 minutes ago, antman2008 said:

it is this code

set {_n::*} to {16 iron block}

set {_m::*} to {1 of glowing iron block}

loop {_n::*}:

while {_p} has loop-value:

remove loop-value from {_p}'s inventory

give {_p} {_m::%loop-index%}

set {_s} to true

it is for compressing items 

the creator was being so mean to me when i asked him to help

I don't see in anyway I can help you with this. This isn't even a full Skript and how are you suppose to fix an unfinished Skript? Please learn a little Skript yourself before asking for help. It's not that hard to understand how Skript works. There are tons of beginner tutorials out there you can learn from.

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

  • 0
18 hours ago, NotKaizo said:

I don't see in anyway I can help you with this. This isn't even a full Skript and how are you suppose to fix an unfinished Skript? Please learn a little Skript yourself before asking for help. It's not that hard to understand how Skript works. There are tons of beginner tutorials out there you can learn from.

well this is the full code. this is compressing and decompressing 

options:

# Just add them in order, and be carefully that you dont mess up 😄

# in this example:     64 coal = 2 coal blocks || 64 Iron ingot = 1 Iron block....

# seperated by "," and the last comma has to be "and"

# it will always upgrade with the item at the same position!

 

 

    BlocksToCompress: 64 coal, 64 iron ingot and 64 diamond

# Enchanted Items: 1 of glowing %item%

# named item: 1 of %item% named "Name"

# lore: 1 of %item% named "name" with lore "Lore 1", "Lore 2" and "lore 3"

    UpgradedVersion: 2 coal block named "lol", 1 of glowing iron block and 1 of stone named "name" with lore "Lore 1", "Lore 2" and "lore 3"

    

command /compress:

trigger:

compress(player)

command /decompress:

trigger:

decompress(player)

    

function compress(p:player😞

set {_n::*} to {16 iron block}

set {_m::*} to {1 of glowing iron block}

loop {_n::*}:

while {_p} has loop-value:

remove loop-value from {_p}'s inventory

give {_p} {_m::%loop-index%}

set {_s} to true

send "&bYou have no blocks to compress." to {_p} if {_s} is not set

 

function decompress(p:player😞

set {_n::*} to {@BlocksToCompress}

set {_m::*} to {@UpgradedVersion}

loop {_m::*}:

while {_p} has loop-value:

if {_p} can hold {_n::%loop-index%}:

remove loop-value from {_p}'s inventory

give {_p} {_n::%loop-index%}

send "&bYou have no blocks to decompress." to {_p} if {_s} is not set


 

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