For creator of Skript:
Why did you change all names of minecraft blocks in %block% ?
I'm creating a way to be mobs with Skript, now I'm creating enderman abilities to players use.
The ability of take blocks of world and place it again shouldn't be hard, but the names of blocks in Skript doesn't matches with vanilla names, as all plugins usually keep equal.
Example:
Vanilla:
stone
dirt
sand
diorite
andesite
granite
Skript:
stone block
dirt block
sand block
raw diorite
raw andesite
raw granite
This sucks, because I need to change the block in mainhand of enderman disguise using lib's disguises, wich use vanilla original names, and Skript doesn't. I don't know what blocks have original name, so, I have to test all blocks to do my code correctly. If someone knows how to use vanilla block name in Skript, tell me please.
Example of my code:
Why did you change all names of minecraft blocks in %block% ?
I'm creating a way to be mobs with Skript, now I'm creating enderman abilities to players use.
The ability of take blocks of world and place it again shouldn't be hard, but the names of blocks in Skript doesn't matches with vanilla names, as all plugins usually keep equal.
Example:
Vanilla:
stone
dirt
sand
diorite
andesite
granite
Skript:
stone block
dirt block
sand block
raw diorite
raw andesite
raw granite
This sucks, because I need to change the block in mainhand of enderman disguise using lib's disguises, wich use vanilla original names, and Skript doesn't. I don't know what blocks have original name, so, I have to test all blocks to do my code correctly. If someone knows how to use vanilla block name in Skript, tell me please.
Example of my code:
Code:
on left click:
if {mode.control.%player%} is "true":
if {mode.control.ismob.%player%} is "CM:Enderman":
if player's tool is air:
if player's current hotbar slot is 0:
if player is sneaking:
cancel event
set {mode.control.targetedblock.%player%} to player's targeted block
set slot 0 of player to {mode.control.targetedblock.%player%}
set {mode.control.targetedblock.%player%} to "%{mode.control.targetedblock.%player%}%"
if {mode.control.targetedblock.%player%} isn't "sand block" or "dirt block" or "stone block":
replace all " " with "_" in {mode.control.targetedblock.%player%}
if {mode.control.targetedblock.%player%} is "raw_granite" or "raw_diorite" or "raw_andesite":
replace all "raw_" with "" in {mode.control.targetedblock.%player%}
broadcast {mode.control.targetedblock.%player%}
make console execute command "disguisemodifyplayer %player% setItemInMainHand %{mode.control.targetedblock.%player%}%"
set targeted block of player to air
delete {mode.control.targetedblock.%player%}