Jump to content

NotKaizo

Member
  • Posts

    204
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by NotKaizo

  1. So, since I was bored and had pretty much nothing to do, I created another warp Skript but this time there is more features to it!

     

    Features:

    - Requires Payment (You can now set how much money is required to use the warp!)

    - Requires Permission (You can set if you want the players to need a permission to use the warp!)

    It might not work but I don't see anything wrong with the Skript so if there is any errors/problems with it, please let me know and I will fix it.

     

    options:
        #! Permissions
    
        create_perm: warp.create # Permission for someone to create warps.
    
        use_perm: warp.use # Permission for someone to use the /warp command.
    
        delete_perm: warp.delete # Permission for someone to delete warps.
    
    command /createwarp [<string>] [<integer>] [<string>]:
        usage: /createwarp <warp name> <price> <permission: true/false>
        permission: {@create_perm}
        trigger:
            if arg-1 is set:
                if arg-2 is set:
                    if arg-3 is set:
                        if {warp::%arg-1%} is not set:
                            set {warp::%arg-1%} to location of player
                            set {req::%arg-1%} to arg-2
                            set {permission::%arg-1%} to arg-3
                            send "&aSuccessfully create warp &e%arg-1%!"
                        else:
                            send "&cThis warp already exists!"
                    if arg-3 is not set:
                        send "&cPlease state if a certain permission is required for this warp, &etrue/false"
                if arg-2 is not set:
                    send "&cPlease state the price cost to use this warp! If it's free, put &e0"
            if arg-1 is not set:
                send "&cPlease state the warp's name!"
    
    function Warp(p: player, w: text, a: integer):    
        if {req::%{_w}%} is set:
            if {permission::%{_w}%} is true:
                if {_p}'s balance >= {_i}:
                    if {_p} has permission "warp.%{_w}%":
                        remove {_i} from {_p}'s balance
                        teleport {_p} to {warp::%{_w}%}
                        send "&aTeleporting..."
                    else:
                        send "&cYou do not have permission to use this warp!" to {_p}
                else:
                    send "&cInsufficient Funds!" to {_p}
            if {permission::%{_w}%} is false:
                if {_p}'s balance >= {_i}:
                    remove {_i} from {_p}'s balance
                    teleport {_p} to {warp::%{_w}%}
                else:
                    send "&cInsufficient Funds!" to {_p}
        
    command /warp [<string>]:
        usage: /warp <warp name>
        permission: {@use_perm}
        trigger:
            if arg-1 is set:
                if {warp::%arg-1%} is set:
                    Warp(player, arg-1, {req::%arg-1%})
                else:
                    send "&cThis warp does not exist!"
    
    command /deletewarp [<string>]:
        usage: /deletewarp <warp name>
        permission: {@delete_perm}
        trigger:
            if arg-1 is set:
                if {warp::%arg-1%} is set:
                    delete {warp::%arg-1%}
                    delete {req::%arg-1%}
                    delete {permission::%arg-1%}
                    send "&aSuccessfully deleted warp &e%arg-1%!"
                else:
                    send "&cThis warp does not exist!"
    

     

    Reviews and suggestions are greatly appreciated 🙂

  2. 16 hours ago, Lapzzo said:

    Hey sorry, im pretty new to head nbt, and nbt overall, but why doesnt this work?

    command /test:
    	trigger:
    		open chest with 3 rows named "&4TEST" to player
    		format gui slot 0 of player with player head with nbt "{SkullOwner:{Id:[I;1694348685,-1205448775,-1416642746,-1392269805],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWUyNWRiZTQ3NjY3ZDBjZTIzMWJhYTIyM2RlZTk1M2JiZmM5Njk2MDk3Mjc5ZDcyMzcwM2QyY2MzMzk3NjQ5ZSJ9fX0="}]}},display:{Name:'{"text":"Money Bag"}'}}" named "test"

     

    In skript, you have to double all " and # for them to work. So double them in your NBT.

  3. 11 hours ago, Lapzzo said:

    Where do I get head Nbt from?

    If you have Effects Command enable thru the Skript Config, you can hold out the player's head and do !send nbt of player's held item to console and check your logs for the NBT. Don't use the Live Console as it sometimes doesn't show the full NBT. 

    If you don't have Effects Command enabled, you can make a Skript for it. 

    command /test:
    	trigger:
    		send nbt of player's held item to console

     

    • Thanks 1
  4. every 1 second:
    	loop all players:
    		if loop-player's inventory contains emerald named "&6&lJump Booster":
    			apply jump boost 2 to the loop-player for 1 second
    			

    Try that, it should work

  5. Hey there!

    You might have accidentally changed your Level name if your Minehut panel. This usually happens when you download a map from Minehut Market. They might have already fixed it but I don't know as I don't buy maps from them. But if they haven't fix it, you can do these steps and it may help you recover your world back! 

    1st: Go to your Minehut Panel and choose the Settings Tab
     

    You should see a section there that says 'Level Name'. Change the Level name to your worlds name and click save! Restart your server and your problem might be solved.


    image.png.bf1aab674315633fda461fc294bf8fdc.png

     

    If that doesn't fix your problem, I am really sorry but I tried my best to help! If someone else is experiencing players data/worlds being deleted, you can try this and it might fix it. 

  6. Are you sure the TPS does not drop? Do NOT check it from the scoreboard but instead, if you have EssentialsX plugin installed, you can do the command /lag and it will show you your server TPS and other useful information. 

    Do also check if you have Plugins/Skript that you think may be causing this issue.  

  7. Hey, a lot of people are getting false ban on Minehut right now as there is a lot of people botting. Just wait till your appeal is read and they will give you an answer (Hopefully unbanning you). Also, I believe hacking is not going to get you ban in the whole Minehut network as pretty sure that is not in their rules.  

  8. Uh.... why don't I make you a new one instead?

    command /warp [<text>]:
    	trigger:
      		if arg-1 is set:
      			if {warp::%arg-1%} is set:
      				teleport player to {warp::%arg-1%}
      				send "&aTeleporting..."
      			if {warp::%arg-1%} is not set:
    				send "&cThis warp does not exist!"
      				stop
      		if arg-1 is not set:
      			send "&6Usage: /warp <warp name>"
      
    command /setwarp [<text>]:
      	trigger:
      		if arg-1 is set:
      			if {warp::%arg-1%} is not set:
      				set {warp::%arg-1%} to location of player
      				send "&aSuccessfully set new warp!"
      			if {warp::%arg-1%} is set:
      				send "&cThis warp already exist!"
      		if arg-1 is not set:
    			send "&6Usage: /warp <warp name>"
      		

    This isn't the best but it works better than the one you have as now you don't have to make a Skript for every new warp...

    Hope this helps!

  9. So, I am trying to make an item that mines a certain block faster. Like I want it to show the breaking animation. I am trying to make a beacon breaker where there will be tiers and each tier breaks the beacon faster. Is there a way to do that with Skript?

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

  11. Hey there, 

    In order to upload a world, you first go to a website called file.io and upload the world .zip file there. After that, copy the link and go into your server and type the command /ul world <name> <link>. It should be uploaded and in order to make changes to it like make a certain warp there or something, you need the plugin Multiverse so you can import the map in. To import, type the command /mvimport ul_<name> <NORMAL/NETHER/END>. You should have your world fully uploaded now! Hope this helped you in any way.

    • Thanks 1
  12. I wouldn't recommend using wait as I believe if the server closes, the Skript will just break. I make commands with cooldown and make it execute when an item is right click. Something like this:

    command /secret <string>:
      	cooldown: 1 second
      	trigger:
      		if arg-1 is "21422":
                give 5 stone buttons named "&8Rock" to the player
                remove 1 of player's held item from player			
    
    on right click with player head:
            if name of player's held item is "&bSuspicious Bag":
    			execute player command "/secret 21422"
    
    on place:
      	if event-block is player head:
      		cancel event

    So what I basically did was convert the cooldown to a command and make it trigger when someone right clicks the head. I hope this helps you!

  13. Hello, I am Kaizo also known as NotKaizo but yeah. I started playing Minehut at around January 2021. Joined the forums maybe a couple months ago? I don't really remember. I love playing Minecraft and helping out people I guess. That's all for my introduction... 

×
×
  • Create New...