Jump to content

Skript Fire Coral Bug


HurpleBurp

Recommended Posts

on break of netherrack:
    cancel drops
    if event-block is netherrack:
        if level of fortune of player's tool > 0:
            set {_fort.level} to level of fortune of player's tool
            set {_x} to random integer between 1 and 2
            give (({_x}*0.625) + ({_fort.level}*0.4)) of netherrack to the player
        else:
            give 1 of netherrack to the player

this is the skript that automatically gives players blocks instead of the block dropping and them going to pick it up.

on break of netherrack or fire coral block:
  if player's inventory has 9 netherrack:
    remove 9 netherrack from player's inventory
    give 1 fire coral block named "&fRefined Netherrack" to player

this is the skript that "auto blocks" 9 netherrack to 1 fire coral. What it does is it takes 9 netherrack from the players inventory, and replaces it with 1 fire coral block. When this process goes through, for some reason, half the time it gives me a dead fire coral block even though I didn't write for that to happen in the skript. A fire coral block and a dead fire coral block have entirely different names. There is no delay for the items, it just takes 9 netherrack from your inventory and puts fire coral/dead fire coral in. The dead fire coral is immediate, and the alive fire coral doesn't switch. I don't see any other explanation to this other than it being a bug.

Link to comment
Share on other sites

Use the Skript Discussion section to get help regarding Skript.

Hello there! If you're reading this, hope you're having a wonderful day!

 

Feel free to contact me via Discord (CoolProgrammer#1920) for any help.

My DMs are always open for help.

You can also message via. forum messages for help.

1604908226_ScreenShot2021-01-28at10_32_28AM.png.2646ad6be239a9d0756a99e8e15602ab.png

Also, don't hesitate to leave a like on my post if I helped you in any way.

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