[SPIGOT-364] Impossible to setmetadata stone to get Diorite/Andesite/Granite Created: 05/Jan/15  Updated: 06/Jan/15  Resolved: 06/Jan/15

Status: Closed
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: quienti Assignee: Thinkofname
Resolution: Invalid Votes: 0
Labels: 1.8, bukkit
Environment:

Bukkit 1.8



 Description   

In Minecraft wiki, andesite/granite and diorite are stone block with a metadata
So :

src.getBlock(x, y, z).setType(Material.STONE);
src.getBlock(x, y, z).getState().setData(new MaterialData(Material.STONE, (byte)5));

But, I have always stone



 Comments   
Comment by Black Hole [ 05/Jan/15 ]

BlockState is a snapshot of a block.
You have to save it to a variable, manipulate it and then apply it back to the block.

Comment by Thinkofname [ 05/Jan/15 ]

Bukkit 1.8 isn't a valid version, please provide the output of /version for the version field

Generated at Mon Apr 21 21:30:36 UTC 2025 using Jira 10.3.5#10030005-sha1:190c783f2bd6c69cd5accdb70f97e48812a78d14.