Jump to content

PixelTrainerYT

Member
  • Posts

    27
  • Joined

  • Last visited

Posts posted by PixelTrainerYT

  1. my last submission may have been broken, so sorry about that

    anyways, here is the skript:

    command /tpa [<offline player>]:
    	trigger:
    		if arg-1 is set:
    			if arg-1 is online:
    				if {%uuid of player%'s tttpa} is not set:
    					set {%uuid of player%'s tttpa} to now
    				if {%uuid of player%'s tttpa} is smaller than now:
    					set {%uuid of arg-1%'s tpar} to player
    					set {_time} to now
    					add 1 minutes to {_time}
    					set {%uuid of arg-1%'s tttpar} to {_time}
    					send "&6&l[&e&lTPA&6&l]&r TPA request sent!" to player
    					send "&6&l[&e&lTPA&6&l]&r %player% has sent you a teleport request! say /tpaccept to teleport them to you!" to arg-1
    				else:
    					send "&6&l[&e&lTPA&6&l]&r You need to wait a bit to teleport to others!"
    			else:
    				send "&6&l[&e&lTPA&6&l]&r Player not found, are they on the server?" to player
    		else:
    			send "&6&l[&e&lTPA&6&l]&r Usage: /tpa (player)" to player
    
    command /sethome:
    	trigger:
    		if {%uuid of player%'s tttpa} is not set:
    			set {%uuid of player%'s tttpa} to now
    		if {%uuid of player%'s tttpa} is smaller than now:
    			send "your home was created" to player
    			set {%uuid of player%'s home} to player's location
    		else:
    			send "&6&l[&e&lTPA&6&l]&r You need to wait a bit to make a home!"
    command /home:
    	trigger:
    		if {%uuid of player%'s home} is set:
    			if {%uuid of player%'s tttpa} is smaller than now:
    				teleport player to {%uuid of player%'s home}
    				send "&6&l[&e&lTPA&6&l]&r Sending you home!" to player
    			else:
    				send "&6&l[&e&lTPA&6&l]&r You need to wait a bit to teleport home!"
    		else:
    			send "&6&l[&e&lTPA&6&l]&r You don't have a home!" to player
    
    command /tpaccept:
    	trigger:
    		if {%uuid of player%'s tpar} is set:
    			if {%uuid of player%'s tttpa} is not set:
    				set {%uuid of player%'s tttpa} to now
    			if {%uuid of player%'s tttpar} is not set:
    				set {%uuid of player%'s tttpar} to now
    			if {%uuid of player%'s tttpar} is bigger than now:
    				if {%uuid of player%'s tpar} is online:
    					if {%uuid of player%'s tttpa} is smaller than now:
    						set {_uuidoftper} to uuid of {%uuid of player%'s tpar}
    						if {%{_uuidoftper}%'s tttpa} is smaller than now:
    							send "&6&l[&e&lTPA&6&l]&r Teleporting you to %{%uuid of player%'s tpar}%!" to {%uuid of player%'s tpar}
    							teleport {%uuid of player%'s tpar} to player
    						else:
    							send "&6&l[&e&lTPA&6&l]&r Cannot teleport %{%uuid of player%'s tpar}%, as they have taken damage!" to player
    					else:
    						send "&6&l[&e&lTPA&6&l]&r You cannot teleport others right now!" to player
    				else:
    					send "&6&l[&e&lTPA&6&l]&r %{%uuid of player%'s tpar}% is no longer online!" to player
    			else:
    				send "&6&l[&e&lTPA&6&l]&r Your TPA has expired!"
    			clear {%uuid of player%'s tpar}
    		else:
    			send "&6&l[&e&lTPA&6&l]&r You don't have any requests!" to player
    
    
    
    on damage of a player:
    	set {_time} to now
    	add 2 minutes to {_time}
    	set {%uuid of victim%'s tttpa} to {_time}
    	if attacker is a player:
    		set {%uuid of attacker%'s tttpa} to {_time}
    
    on death of a player:
    	wait a tick
    	send "&6&l[&e&lTPA&6&l]&r&4 You Died! &cYour death coords are &6%position of player%"
    	
    on player join:
    	set {_time} to now
    	add 2 minutes to {_time}
    	set {%uuid of player%'s tttpa} to {_time}

    if this doesn't work, im sorry lol

    also not nessesary but i would like credit for my skript

  2. I just fixed the death message being "Player died"

    also 1.17 mobs will appear as "damagable mob", this is due to the version of Skript used

    image.png.b460da01c2ab41c8a719f9bb90c0770f.png

    Q: ok cool but ive never seen this skript before so what does it do?

    A: It changes knockback and how unbreaking works with armor, it also adds a sick command called "/showdmg"
    This command makes the damage you dealt and the health of the victim appear in chat

    Q: are there any bugs?

    A: There is one bug im aware of, I call it the "arrow effect" bug. Basically if you block with a shield and an arrow hits your shield, you will still gain the effects of the arrow if it had any. I don't know how to fix this yet

    Combat V4.sk

  3. 50 minutes ago, StarBunnie said:

    oops yeah that kinda makes sense hmm it might be possible with skript-mirror or reflect but both are not allowed on minehut so you might be out of luck

    Oh, that sucks. I guess I might have to rewrite my entire skript. Thanks for the help anyways.

  4. Basically I want the game to think that deaths caused by skript damage was actually caused by player damage, so if anyone knows how to do that and is willing to help me, thanks.

    Things I tried so far:

    • damage victim by {dmg} with fake cause attack
    • set last damage cause of victim to attack (would come up with an error)
      image.png.ea6a168c833b82514f649a9fae1ddf65.png
        

    Server version: 1.17

  5. This skript changes knockback and armor & shield durability, originally made this for an Origins skript.

     

    Update 3: Rewrote the skript to be more "survival friendly". Also shields should be fixed.

    Update 1 & 2: Note from these 2 versions: There are still some things that are broken with this (like shields), but it should work just fine.

     

    Combatv3.sk

  6. 14 hours ago, StarBunnie said:

    Personally I'd be careful with "every tick:" because it can lag the server a lot.

    1 Tick is 1/20th of a second which means you're looping every player on your server about 20 times a second if you have 10 players on that would already be 200 per one second just fyi.

    so would it be better every second?

  7. so i decided to make this:

    command sethealth <text> <num> <text>:
    	trigger:
    		set {%arg 3% %arg 1%} to arg 2
    		loop {healthlist::*}:
    			if loop-value is arg 1:
    				remove loop-value from {healthlist::*}
    		add arg 1 to {healthlist::*}
    
    
    
    
    every tick:
    	Loop all players:
    		set loop-player's max health to 10
    		loop {healthlist::*}:
    			add {%uuid of loop-player% %loop-value-2%} to loop-player's max health
    		
    		

    This allows me to have multiple skripts that will change the players health without any of them conflicting eachother

    theres probably a better way to achieve this and this might have a few issues but this is all I have for now

  8. 3 hours ago, PixelTrainerYT said:

    So I have an idea for a skript thing

    basically i want a command in this format: /addhp <text> <num(positive or negative)> <plrUUID>

    and if a player inputed a command like this: /addhp randname -3 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee; it would remove 3 hearts (7 hearts after removal) from the player who has that UUID. If the player then inputed "/addhp randname 3 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", it would give the player 3 more hearts (13 hearts), if the player then inputed "/addhp randname2 5 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", it would give the player 5 more hearts ontop of the 3 extra hearts (18 hearts)
    hopefully you can understand what i want and its not too difficult for you to do

    no longer need help with this

  9.   

    35 minutes ago, _xXOussamaXx_ said:

    You could just do "else" instead of adding lines.. For example:

    command /talisman:
      trigger:
        give player 1 grass named "&2&lGrass Talisman"
    
    every tick:
      loop all players:
        if loop-player is holding a grass named "&2&lGrass Talisman":
          apply speed without any particles to the loop-player
          apply health boost 3 without any particles to the loop-player
        else:
          remove speed from loop-player
          remove health boost from loop-player

     

    couldn't you also do this:

    command /talisman:
      trigger:
        give player 1 grass named "&2&lGrass Talisman"
    
    every tick:
      loop all players:
        if loop-player is holding a grass named "&2&lGrass Talisman":
          apply speed of tier 1 without particles to loop-player for 1 second replacing existing effect
          apply health boost of tier 1 without particles to loop-player for 1 second replacing existing effect

    could also add nbt data for the talismans, but i dont know how to do that

  10. So I have an idea for a skript thing

    basically i want a command in this format: /addhp <text> <num(positive or negative)> <plrUUID>

    and if a player inputed a command like this: /addhp randname -3 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee; it would remove 3 hearts (7 hearts after removal) from the player who has that UUID. If the player then inputed "/addhp randname 3 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", it would give the player 3 more hearts (13 hearts), if the player then inputed "/addhp randname2 5 aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", it would give the player 5 more hearts ontop of the 3 extra hearts (18 hearts)
    hopefully you can understand what i want and its not too difficult for you to do

  11. Decided to make sugarcane bonemealable

    on right click with bonemeal:
     set {offender} to 0
     if event-block is sugar cane:
      if block above event-block is sugar cane:
       if block 2 under event-block is not sugar cane:
        if block 2 above event-block is not sugar cane:
         if block 1 above event-block is sugar cane:
          add 1 to {offender}
         if block 1 below event-block is sugar cane:
          add 1 to {offender}
         if {offender} is not 2:
          set block 2 above event-block's location to sugar cane
          remove bonemeal from player
      else:
       if block 2 under event-block is not sugar cane:
        set block 1 above event-block's location to sugar cane
        remove bonemeal from player
        
    command /bmreload:
     permission: bonemeal.reload
     trigger:
      make console execute "/skript reload Bonemeal"
      
      
    on load:
     broadcast "&7&l[Bonemeal]&r&a Skript reloaded!" 
      

    I'm new to skript, so this not might be perfect.

  12. On 6/12/2021 at 5:32 PM, _Tarna_ said:

    If you know how to use run python and the Minehut API, you can run this code @UntitledGoose made which uses the Minehut API to automatically upload a folder of your choice into your server.

    https://github.com/honkling/minehut-scripts/blob/master/datapack-ul/main.py

    Alright, I'll try to use this, thanks.

     

    Edit: It works, not as fast as I would've liked it, but it is faster to do than what I would have to do previously.

×
×
  • Create New...