Jump to content

skript Generator help


ASigge

Recommended Posts

this is what i came up with:
on place of white wool:
  if player has white wool named "&fGenerator - Tier 1":
    set {_drop} to block above event-block
    add {_drop} to {drops::*}
    message "&a&lPlaced a Tier 1 Generator"

on break of white wool:
    remove block above event-block from {drops::*}
    give player 1 white wool named "&fGenerator - Tier 1"
    message "&c&lBroke a Tier 1 Generator"

every 5 seconds:
  drop 1 paper named "&a$1" at {drops::*}


on place of light gray wool:
  if player has light gray wool named "&8Generator - Tier 2":
    set {_drop} to block above event-block
    add {_drop} to {drops::*}
    message "&a&lPlaced a Tier 2 Generator"

on break of light gray wool:
    remove block above event-block from {drops::*}
    give player 1 light gray wool named "&8Generator - Tier 2"
    message "&c&lBroke a Tier 2 Generator"

every 5 seconds:
  drop 2 paper named "&a$1" at {drops::*}

but it drops 3 papper if i place 1 white wool named "&fGenerator - Tier 1" then it takes from the tier 2 also! how should i make so they dont take from each others. if i do they Tier 2 generator it drops 3 aswell! How should i do so it only drops 1 paper at the Tier 1 Generator? Need help, Discord : ASigge#9880

Link to comment
Share on other sites

You could make separate variables for tier 1 and tier 2 generators so that it only drops the $1 note at tier 1, then the other two notes at tier 2.

  • Like 1

First Joined: July 2015
VIP: January 2020
Jr.Mod: 1st April 2020
Mod: 16th July 2020

Info:

~ Skript Developer
~ Discord: @nicholxs#0001
~ Previous names: Nichxlxs, Deterno, iHaveSkills, Retrical

Link to comment
Share on other sites

  • 2 weeks later...

try this:

on place of white wool:
  if player has white wool named "&fGenerator - Tier 1":
    set {_drop} to block above event-block
    add {_drop} to {t1drops::*}
    message "&a&lPlaced a Tier 1 Generator" 
on break of white wool:
    remove block above event-block from {t1drops::*}
    give player 1 white wool named "&fGenerator - Tier 1"
    message "&c&lBroke a Tier 1 Generator" 
every 5 seconds:
  drop 1 paper named "&a$1" at {t1drops::*} 

on place of light gray wool:
  if player has light gray wool named "&8Generator - Tier 2":
    set {_drop} to block above event-block
    add {_drop} to {t2drops::*}
    message "&a&lPlaced a Tier 2 Generator" 
on break of light gray wool:
    remove block above event-block from {t2drops::*}
    give player 1 light gray wool named "&8Generator - Tier 2"
    message "&c&lBroke a Tier 2 Generator" 
every 5 seconds:
  drop 2 paper named "&a$1" at {t2drops::*} 

Hope I helped you out!

Edit: this is untested!

Edited by RecipeSK
  • Like 1

hello am preludal but u can call me preludail. thanks forwatching my signature                                                          

Link to comment
Share on other sites

On 2/14/2020 at 5:50 PM, RecipeSK said:

try this:


on place of white wool:
  if player has white wool named "&fGenerator - Tier 1":
    set {_drop} to block above event-block
    add {_drop} to {t1drops::*}
    message "&a&lPlaced a Tier 1 Generator" 
on break of white wool:
    remove block above event-block from {t1drops::*}
    give player 1 white wool named "&fGenerator - Tier 1"
    message "&c&lBroke a Tier 1 Generator" 
every 5 seconds:
  drop 1 paper named "&a$1" at {t1drops::*} 

on place of light gray wool:
  if player has light gray wool named "&8Generator - Tier 2":
    set {_drop} to block above event-block
    add {_drop} to {t2drops::*}
    message "&a&lPlaced a Tier 2 Generator" 
on break of light gray wool:
    remove block above event-block from {t2drops::*}
    give player 1 light gray wool named "&8Generator - Tier 2"
    message "&c&lBroke a Tier 2 Generator" 
every 5 seconds:
  drop 2 paper named "&a$1" at {t2drops::*} 

Hope I helped you out!

Edit: this is untested!

skRecipe i kinda used ur idea for my signature hope u dont mindd xD

  • Like 1

» IGN: _iZ_ «

» Joined: 12/18/2016 «

» VIP: 1/13/2018 «

» Helper: 1/29/2021 «

» [<3]: 5/8/2021 «

» Skript dev «

» Discord: iZz#0420 «

I have diabetes

React to this if I was helpful, found this interesting, or you're just nice 🙂

Link to comment
Share on other sites

8 minutes ago, izzzzthewiz said:

skRecipe i kinda used ur idea for my signature hope u dont mindd xD

yea np

  • Like 1

hello am preludal but u can call me preludail. thanks forwatching my signature                                                          

Link to comment
Share on other sites

  • 10 months later...
On 1/27/2020 at 11:29 AM, ASigge said:

this is what i came up with:
on place of white wool:
  if player has white wool named "&fGenerator - Tier 1":
    set {_drop} to block above event-block
    add {_drop} to {drops::*}
    message "&a&lPlaced a Tier 1 Generator"

on break of white wool:
    remove block above event-block from {drops::*}
    give player 1 white wool named "&fGenerator - Tier 1"
    message "&c&lBroke a Tier 1 Generator"

every 5 seconds:
  drop 1 paper named "&a$1" at {drops::*}


on place of light gray wool:
  if player has light gray wool named "&8Generator - Tier 2":
    set {_drop} to block above event-block
    add {_drop} to {drops::*}
    message "&a&lPlaced a Tier 2 Generator"

on break of light gray wool:
    remove block above event-block from {drops::*}
    give player 1 light gray wool named "&8Generator - Tier 2"
    message "&c&lBroke a Tier 2 Generator"

every 5 seconds:
  drop 2 paper named "&a$1" at {drops::*}

but it drops 3 papper if i place 1 white wool named "&fGenerator - Tier 1" then it takes from the tier 2 also! how should i make so they dont take from each others. if i do they Tier 2 generator it drops 3 aswell! How should i do so it only drops 1 paper at the Tier 1 Generator? Need help, Discord : ASigge#9880

Can you script a thing so players have a genrator cap?

Link to comment
Share on other sites

🔐 Locked due to necroposting

Please refrain from replying to posts that haven't been replied to in 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 - now

Moderator - 12/20/22 - now

---------------------------------------------------------

image.png.70849a9b84e0347ce107b8e3eaee312c.pngimage.png.2111009afbd8bef10966ba9ede35a199.png

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...