Jump to content

Wolfeee_ | Generator Skript


Wolfeee_
 Share

Recommended Posts

Generator Skript:

- What does it do?
- What items does the generator spawn?

The generator skript, basically generates 1 wheat every 80 ticks in the Minecraft world above the Hay Block that you place down. This could be helpful in many situations, and you may edit this to your liking! I know the skript could have been made better, but since I'm still considered a "Beginner Skripter" this is how I coded it.


Skript: 



 

  • Thanks 1
  • Confused 1
  • Sad 1

IGN: Wolfeee_
Discord: Nathan.#4380


00243044b4b99f59989b7171466e765c.png

a.png

Link to comment
Share on other sites

@DuhDuhDUH Okay, to fix that issue you must do /gencap <yourname> reset to reset the amount of gens you placed. Make sure to remove the current one you placed down! Also, to make sure that when players join it sets their gen cap to 0 do this:

 

on first join:
	set {gencap::%player's uuid%} to 0

 

  • Like 1

IGN: Wolfeee_
Discord: Nathan.#4380


00243044b4b99f59989b7171466e765c.png

a.png

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

@Wolfeee_ i looked back into the skript and i found 1 thing you are missing! I found that you are messing when the player destroy's the block it doesn't remove 1 from gencaps 

on break of hay block:
	cancel event
	give player 1 hay block named "&7Generator"
	remove 1 from {gens::%player's uuid%}
	send "&aYou Broke A &6&lWheat &aGenerator!" #Optional I Just Prefer this to make it look neater but can get messy when breaking alot of gens :D

i wrote that in the forum code so it could be wrong

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

Topic locked. 🔒

Please do not reply on month-old inactive topics!

𝚄𝚗𝚝𝚛𝚎𝚊𝚝𝚎𝚍

𝔻𝕚𝕤𝕔𝕠𝕣𝕕: @𝕌𝕟𝕥𝕣𝕖𝕒𝕥𝕖𝕕#𝟘𝟘𝟘𝟙

News & Updates  Rules • Helper Application

Reports • Appeals

𝚂𝚝𝚊𝚏𝚏 𝚘𝚗 𝙼𝚒𝚗𝚎𝚑𝚞𝚝 𝚜𝚒𝚗𝚌𝚎 𝙹𝚞𝚗𝚎 𝟹𝟶𝚝𝚑, 𝟸𝟶𝟸𝟶

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...