Jump to content

Trying to set "generator themes"


ReaperKraken

Recommended Posts

This reloads with no errors but doesnt work

 

There is something wrong with the gui, the generator itshelf works and /theme works if i use it manually.

on right click on coarse dirt:
	cancel event
	open chest inventory with 3 rows named "&aGenerator Theme" to player
	wait 3 ticks
	format slot 10 of player with grass block named "&aOverworld" with lore "&bClick here to set generator theme to &aOverworld&b!" to close then run "/theme %player% 1"
	format slot 11 of player with end stone named "&dEnd" with lore "&bClick here to set generator theme to &dEnd&b!" to close then run "/theme %player% 2"
	format slot 12 of player with netherrack named "&cNether" with lore "&bClick here to set generator theme to &cNether&b!" to close then run "/theme %player% 3"
	format slot 13 of player with prismarine block named "&9Ocean" with lore "&bClick here to set generator theme to &9Ocean&b!" to close then run "/theme %player% 4"
	format slot 14 of player with sand named "&eDesert" with lore "&bClick here to set generator theme to &eDesert&b!" to close then run "/theme %player% 5"
	format slot 15 of player with stone named "&7Caves" with lore "&bClick here to set generator theme to &7Caves&b!" to close then run "/theme %player% 6"
	format slot 16 of player with deepslate named "&8Deep Caves" with lore "&bClick here to set generator theme to &8Deep Caves&b!" to close then run "/theme %player% 7"
	
command /theme [<player>] [<integer>]:
	permission: op
	trigger:
		if arg-2 is 1:
			set {theme.%block above targeted block of arg-1%} to 1
		else if arg-2 is 2:
			set {theme.%block above targeted block of arg-1%} to 2
		else if arg-2 is 3:
			set {theme.%block above targeted block of arg-1%} to 3
		else if arg-2 is 4:
			set {theme.%block above targeted block of arg-1%} to 4
		else if arg-2 is 5:
			set {theme.%block above targeted block of arg-1%} to 5
		else if arg-2 is 6:
			set {theme.%block above targeted block of arg-1%} to 6
		else if arg-2 is 7:
			set {theme.%block above targeted block of arg-1%} to 7
  
on break:
	if block under event-block is coarse dirt:
		if {theme.%event-block%} isn't set:
			set {theme.%event-block%} to 1
			set event-block to oak log
		else if {theme.%event-block%} is 1:
			set {-r} to (random integer between 1 and 6)
			if {-r} is 1:
				set event-block to oak log
			else if {-r} is 2:
				set event-block to cobblestone
			else if {-r} is 3:
				set event-block to iron ore
			else if {-r} is 4:
				set event-block to hay block
			else if {-r} is 5:
				set event-block to melon block
			else if {-r} is 6:
				set event-block to glass
		else if {theme.%event-block%} is 2:
			set {-r} to (random integer between 1 and 5)
			if {-r} is 1:
				set event-block to end stone
			else if {-r} is 2:
				set event-block to purpur block
			else if {-r} is 3:
				set event-block to end stone bricks
			else if {-r} is 4:
				set event-block to obsidian
			else if {-r} is 5:
				set event-block to iron bars
		else if {theme.%event-block%} is 3:
			set {-r} to (random integer between 1 and 9)
			if {-r} is 1:
				set event-block to netherrack
			else if {-r} is 2:
				set event-block to magma block
			else if {-r} is 3:
				set event-block to ancient debris
			else if {-r} is 4:
				set event-block to glowstone
			else if {-r} is 5:
				set event-block to nether quartz ore
			else if {-r} is 6:
				set event-block to nether gold ore
			else if {-r} is 7:
				set event-block to blackstone
			else if {-r} is 8:
				set event-block to crimson stem
			else if {-r} is 9:
				set event-block to warped stem
			else if {-r} is 10:
				set event-block to basalt
		else if {theme.%event-block%} is 4:
			set {-r} to (random integer between 1 and 8)
			if {-r} is 1:
				set event-block to tube coral block
			else if {-r} is 2:
				set event-block to horn coral block
			else if {-r} is 3:
				set event-block to fire coral block
			else if {-r} is 4:
				set event-block to brain coral block
			else if {-r} is 5:
				set event-block to bubble coral block
			else if {-r} is 6:
				set event-block to dark prismarine
			else if {-r} is 7:
				set event-block to prismarine
			else if {-r} is 8:
				set event-block to prismarine bricks
		else if {theme.%event-block%} is 5:
			set {-r} to (random integer between 1 and 8)
			if {-r} is 1:
				set event-block to sand
			else if {-r} is 2:
				set event-block to sandstone
			else if {-r} is 3:
				set event-block to cactus
			else if {-r} is 4:
				set event-block to dead bush
			else if {-r} is 5:
				set event-block to chiseled sandstone
			else if {-r} is 6:
				set event-block to cut sandstone
			else if {-r} is 7:
				set event-block to smooth sandstone
			else if {-r} is 8:
				set event-block to short grass
		else if {theme.%event-block%} is 6:
			set {-r} to (random integer between 1 and 8)
			if {-r} is 1:
				set event-block to any ore
			else if {-r} is 2:
				set event-block to stone
			else if {-r} is 3:
				set event-block to stone
			else if {-r} is 4:
				set event-block to cobblestone
			else if {-r} is 5:
				set event-block to coal ore
			else if {-r} is 6:
				set event-block to granite
			else if {-r} is 7:
				set event-block to diorite
			else if {-r} is 8:
				set event-block to andesite
		else if {theme.%event-block%} is 7:
			set {-r} to (random integer between 1 and 9)
			if {-r} is 1:
				set event-block to any deepslate ore
			else if {-r} is 2:
				set event-block to tuff
			else if {-r} is 3:
				set event-block to deepslate
			else if {-r} is 4:
				set event-block to cobbled deepslate
			else if {-r} is 5:
				set event-block to deepslate coal ore
			else if {-r} is 6:
				set event-block to amethyst block
			else if {-r} is 7:
				set event-block to moss block
			else if {-r} is 8:
				set event-block to calcite
			else if {-r} is 9:
				set event-block to smooth basalt
			else if {-r} is 10:
				set event-block to dripstone block

 

Link to comment
Share on other sites

On 11/19/2021 at 10:23 AM, Hashed_Ice said:

just stop using TuSKe or any other Addon's gui.

Use vanilla's one

Then you can fix it

is easy to use, search it online

or skript-gui

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...