idani1 Posted August 19, 2020 Share Posted August 19, 2020 (edited) Pls give credits for this code if you use it thank you, idani1 on skript load: set {gens} to true on script load: set {gens} to true command /gens <text>: usage: &c/gens <on/off> permission: skript.gens trigger: if arg 1 is "on": set {gens} to true broadcast "&eGens turned on by &a%player%" else if arg 1 is "off": set {gens} to false broadcast "&eGens turned off by &a%player%" else: send "&c/gens <on/off>" to player command /genplace: permission: skript.genplace trigger: set {genplace} to true send "&eGen place will expire in &a10 &eseconds!" to player wait 10 seconds set {genplace} to false send "&eGen place has expired" to player on place oak log: if {genplace} is true: set {wl} to location of event-block's location on place stone: if {genplace} is true: set {sl} to location of event-block's location on place coal block: if {genplace} is true: set {cl} to location of event-block's location on place iron block: if {genplace} is true: set {il} to location of event-block's location on place gold block: if {genplace} is true: set {gl} to location of event-block's location on place diamond block: if {genplace} is true: set {dl} to location of event-block's location every 1 second: if {gens} is true: if {wl} is set: drop oak planks 0.5 above {wl} every 1.5 second: if {gens} is true: if {sl} is set: drop stone 0.5 above {sl} every 2 second: if {gens} is true: if {cl} is set: drop coal 0.5 above {cl} every 5 second: if {gens} is true: if {il} is set: drop iron ingot 0.5 above {il} every 3 second: if {gens} is true: if {gl} is set: drop gold ingot 0.5 above {gl} every 7 second: if {gens} is true: if {dl} is set: drop diamond 0.5 above {dl} every 64 seconds: if {gens} is true: clear all dropped items Edited August 19, 2020 by idani1 1 Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 19, 2020 Share Posted August 19, 2020 Only one type of each gen will work. If a player places another gen, the old gen location gets replaced. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
idani1 Posted August 19, 2020 Author Share Posted August 19, 2020 (edited) 9 minutes ago, _Tarna_ said: Only one type of each gen will work. If a player places another gen, the old gen location gets replaced. are you sure bcz for me it works (theclanpvp) hehe Edited August 19, 2020 by idani1 Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 19, 2020 Share Posted August 19, 2020 1 minute ago, idani1 said: are you sure bcz for me it works (theclanpvp) hehe It does? Can you place multiple of the same type of gen and it drops it above all of them? Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
idani1 Posted August 19, 2020 Author Share Posted August 19, 2020 are you sure you copyed the last edit? beacuse it was true before i edited it Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 19, 2020 Share Posted August 19, 2020 (edited) 15 minutes ago, idani1 said: are you sure you copyed the last edit? beacuse it was true before i edited it Yes I did test the whole thing and only one of each gen will work cause you did not use list variables and add the location to it. You just set the location to 1 value. Also if you break it, the item will still drop. Edited August 19, 2020 by _Tarna_ Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
idani1 Posted August 19, 2020 Author Share Posted August 19, 2020 3 hours ago, _Tarna_ said: Yes I did test the whole thing and only one of each gen will work cause you did not use list variables and add the location to it. You just set the location to 1 value. Also if you break it, the item will still drop. I dont know whats the problem for me it works with this exact code Link to comment Share on other sites More sharing options...
idani1 Posted August 20, 2020 Author Share Posted August 20, 2020 (edited) 15 hours ago, _Tarna_ said: Yes I did test the whole thing and only one of each gen will work cause you did not use list variables and add the location to it. You just set the location to 1 value. Also if you break it, the item will still drop. it has multiple variables what are you talking about? Edited August 20, 2020 by idani1 none :P Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 20, 2020 Share Posted August 20, 2020 7 hours ago, idani1 said: it has multiple variables what are you talking about? Yes there are multiple variables but there is only one variable for each type of gen. So you can only place on kind of each generator. Also the items will still drop if you break the gen. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
idani1 Posted August 20, 2020 Author Share Posted August 20, 2020 (edited) On 8/19/2020 at 5:22 PM, _Tarna_ said: Only one type of each gen will work. If a player places another gen, the old gen location gets replaced. Have you edited the code? If you did you can dm me on discors the code if you dont want to share it or haven't edited the code you can dm me (Idani1#2107) Edited August 20, 2020 by idani1 Link to comment Share on other sites More sharing options...
idani1 Posted August 20, 2020 Author Share Posted August 20, 2020 On 8/19/2020 at 5:22 PM, _Tarna_ said: Only one type of each gen will work. If a player places another gen, the old gen location gets replaced. Have you edited the code? Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 20, 2020 Share Posted August 20, 2020 31 minutes ago, idani1 said: Have you edited the code? I did not edit the code and I don't need it. I was just letting you know that only one of each type of gen will work. If you place multiple of the same gen, it won't drop it above all of them. Only the last one you placed. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
UntitledGoose Posted August 20, 2020 Share Posted August 20, 2020 (edited) kinda super unfriendly for tps ... Edited August 20, 2020 by TheGoose VIP since January 7th, 2020 Support since September 19th, 2020 Helper since November 3rd, 2020 Moderator since March 8th, 2021 Link to comment Share on other sites More sharing options...
idani1 Posted August 21, 2020 Author Share Posted August 21, 2020 (edited) Tarna i uderstanded the problem. ill try to fix it Edited August 21, 2020 by idani1 Link to comment Share on other sites More sharing options...
_Tarna_ Posted August 21, 2020 Share Posted August 21, 2020 2 minutes ago, idani1 said: Tarna i uderstanded the problem. ill try to fix it You would just have to add the locations to a list variable and drop the items above the values in it. Also making it remove the location from the list variable when you break a gen. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
idani1 Posted August 21, 2020 Author Share Posted August 21, 2020 Just now, _Tarna_ said: You would just have to add the locations to a list variable and drop the items above the values in it. Also making it remove the location from the list variable when you break a gen. In the edit i gonna do /delgen command to delete the gen Link to comment Share on other sites More sharing options...
BoostBrodie Posted February 18, 2021 Share Posted February 18, 2021 (edited) i dont understand i do /gens on i then place a coal block or something and nothing happens? edit: nevermind i just changed it to add enderportal drops nether star netherite block drops netherite lapis block drops lapis redstone block drops redstone got rid of wood and stone and everything spawns in 5 seconds added genplace on/off and the items on ground reset every 5 minutes is u want this new version message me/reply to this Edited February 20, 2021 by BoostBrodie Link to comment Share on other sites More sharing options...
mr_Largegoose Posted February 28, 2021 Share Posted February 28, 2021 How do u dealte the Gen? Link to comment Share on other sites More sharing options...
_Tarna_ Posted February 28, 2021 Share Posted February 28, 2021 Topic locked. Please do not reply on threads that have been inactive for over a month. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
Recommended Posts