Jump to content

Mel0nx

Member
  • Posts

    2
  • Joined

  • Last visited

Mel0nx's Achievements

Lurker

Lurker (1/6)

0

Reputation

  1. #------------------------------------------------------------------------------------------------------- every 5 seconds: loop all players in world "plots": loop all blocks in radius 10 around loop-player: if loop-block is coal block: drop a coal at loop-block's position #------------------------------------------------------------------------------------------------------- every 5 seconds: loop all players in world "plots": loop all blocks in radius 10 around loop-player: if loop-block is iron block: drop a iron ingot at loop-block's position #------------------------------------------------------------------------------------------------------- every 5 seconds: loop all players in world "plots": loop all blocks in radius 10 around loop-player: if loop-block is gold block: drop a gold ingot at loop-block's position #------------------------------------------------------------------------------------------------------- every 5 seconds: loop all players in world "plots": loop all blocks in radius 10 around loop-player: if loop-block is diamond block: drop a diamond at loop-block's position #------------------------------------------------------------------------------------------------------- every 5 seconds: loop all players in world "plots": loop all blocks in radius 10 around loop-player: if loop-block is netherite block: drop a netherite ingot at loop-block's position #------------------------------------------------------------------------------------------------------- on craft of coal block: cancel event on craft of iron block: cancel event on craft of gold block: cancel event on craft of diamond block: cancel event on craft of netherite block: cancel event on craft of coal: cancel event on craft of iron ingot: cancel event on craft of gold ingot: cancel event on craft of diamond: cancel event on craft of netherite ingot: cancel event #[----------------------------------------------------------------------------------------------------------------] on break of coal block: if "%world%" contains "plots": cancel event set block to air drop iron block named "&b&lCoal &b&lGenerator" on break of iron block: if "%world%" contains "plots": cancel event set block to air drop iron block named "&b&lIron &b&lGenerator" on break of gold block: if "%world%" contains "plots": cancel event set block to air drop iron block named "&b&lGold &b&lGenerator" on break of diamond block: if "%world%" contains "plots": cancel event set block to air drop iron block named "&b&lDiamond &b&lGenerator" on break of netherite block: if "%world%" contains "plots": cancel event set block to air drop iron block named "&b&lNetherite &b&lGenerator" This is the code. I want the generator to upgrade when someone right-clicks it. For example, if i want an iron generator, i right-click the coal generator. But i want the upgrades to cost something from the essentials balance. I have plugins: EssentialsChat, EssentialsX, LuckPerms, PlotSquared v5, Skript, SkBee, skQuery, skRayFall, SkVault, Vault, WorldEdit
×
×
  • Create New...