WorldEdit

WorldEdit

43M Downloads

Need proper support for item data when use-inventory is enabled

LadyCailinBot opened this issue ยท 0 comments

commented

WORLDEDIT-2590 - Reported by iarspider

WorldEdit commands like //set and //replace doesn't properly handle items with "data" values (e.g. slabs). An easy-to-do example:

  • Get a sandstone slab (44:1)

/give <player> 44 1 1

  • Select a 1x1 region
  • Try setting it to 44:1

//set 44:1

  • See the error

{color:red}Missing these blocks: Step (44) [Amt: 1]{color}

  • Get a Stone Slab (44:0) -

/give <player> 44 1

  • Now try to set the abovementioned region to 44:1

//set 44:1

  • The stone slab magically transforms itself into sandstone one and is placed into the world!

And - by the way - the block #44 is not a "Step", but a "Slab", but that is not too important.

Just for the reference:
{cut Server log}
210 recipes
27 achievements
13:48:27 [INFO] Starting minecraft server version 1.4.6
13:48:27 [INFO] Loading properties
13:48:27 [INFO] Default game type: SURVIVAL
13:48:27 [INFO] Generating keypair
13:48:27 [INFO] Starting Minecraft server on *:25565
13:48:27 [INFO] This server is running CraftBukkit version git-Spigot-jenkins-Spigot-384 (MC: 1.4.6) (Implementing API version 1.4.6-R0.4-SNAPSHOT)
13:48:27 [INFO] --------Setting up Storm Configuration--------
13:48:27 [INFO] Storm Type: strong-electrical-storm
13:48:27 [INFO] Chance: 5
13:48:27 [INFO] Lightning Delay Ticks: 10
13:48:27 [INFO] Lightning Random Delay Ticks: 20
13:48:27 [INFO] Storm Type: electrical-storm
13:48:27 [INFO] Chance: 15
13:48:27 [INFO] Lightning Delay Ticks: 40
13:48:27 [INFO] Lightning Random Delay Ticks: 150
13:48:27 [INFO] Storm Type: strong-thunderstorm
13:48:27 [INFO] Chance: 30
13:48:27 [INFO] Lightning Delay Ticks: 60
13:48:27 [INFO] Lightning Random Delay Ticks: 250
13:48:27 [INFO] Storm Type: thunderstorm
13:48:27 [INFO] Chance: 50
13:48:27 [INFO] Lightning Delay Ticks: 100
13:48:27 [INFO] Lightning Random Delay Ticks: 500
13:48:27 [INFO] Storm Type: weak-thunderstorm
13:48:27 [INFO] Chance: 75
13:48:27 [INFO] Lightning Delay Ticks: 300
13:48:27 [INFO] Lightning Random Delay Ticks: 1000
13:48:27 [INFO] Storm Type: rainstorm
13:48:27 [INFO] Chance: 100
13:48:27 [INFO] Lightning Delay Ticks: 500
13:48:27 [INFO] Lightning Random Delay Ticks: 2000
13:48:27 [INFO] --------Finished Storm Configuration--------
13:48:27 [INFO] [WorldEdit] Loading WorldEdit v18-b1ca6bc
13:48:27 [INFO] Preparing level "world"
13:48:27 [INFO] -------------- Spigot ----------------
13:48:27 [INFO] -------- World Settings For [world] --------
13:48:27 [INFO] Growth Per Chunk: 1000
13:48:27 [INFO] Item Merge Radius: 3.5
13:48:27 [INFO] Experience Merge Radius: 3.5
13:48:27 [INFO] Random Lighting Updates: false
13:48:27 [INFO] Mob Spawn Range: 4
13:48:27 [INFO] Aggregate Ticks: 4
13:48:27 [INFO] Wheat Growth Modifier: 100
13:48:27 [INFO] Cactus Growth Modifier: 100
13:48:27 [INFO] Melon Growth Modifier: 100
13:48:27 [INFO] Pumpkin Growth Modifier: 100
13:48:27 [INFO] Sugar Growth Modifier: 100
13:48:27 [INFO] Tree Growth Modifier: 100
13:48:27 [INFO] Mushroom Growth Modifier: 100
13:48:27 [INFO] -------------------------------------------------
13:48:27 [INFO] -------------- Spigot ----------------
13:48:27 [INFO] -------- World Settings For [world_nether] --------
13:48:27 [INFO] Growth Per Chunk: 0
13:48:27 [INFO] Item Merge Radius: 3.5
13:48:27 [INFO] Experience Merge Radius: 3.5
13:48:27 [INFO] Random Lighting Updates: true
13:48:27 [INFO] Mob Spawn Range: 4
13:48:27 [INFO] Aggregate Ticks: 4
13:48:27 [INFO] Wheat Growth Modifier: 100
13:48:27 [INFO] Cactus Growth Modifier: 100
13:48:27 [INFO] Melon Growth Modifier: 100
13:48:27 [INFO] Pumpkin Growth Modifier: 100
13:48:27 [INFO] Sugar Growth Modifier: 100
13:48:27 [INFO] Tree Growth Modifier: 100
13:48:27 [INFO] Mushroom Growth Modifier: 100
13:48:27 [INFO] -------------------------------------------------
13:48:27 [INFO] -------------- Spigot ----------------
13:48:27 [INFO] -------- World Settings For [world_the_end] --------
13:48:27 [INFO] Growth Per Chunk: 650
13:48:27 [INFO] Item Merge Radius: 3.5
13:48:27 [INFO] Experience Merge Radius: 3.5
13:48:27 [INFO] Random Lighting Updates: false
13:48:27 [INFO] Mob Spawn Range: 4
13:48:27 [INFO] Aggregate Ticks: 4
13:48:27 [INFO] Wheat Growth Modifier: 100
13:48:27 [INFO] Cactus Growth Modifier: 100
13:48:27 [INFO] Melon Growth Modifier: 100
13:48:27 [INFO] Pumpkin Growth Modifier: 100
13:48:27 [INFO] Sugar Growth Modifier: 100
13:48:27 [INFO] Tree Growth Modifier: 100
13:48:27 [INFO] Mushroom Growth Modifier: 100
13:48:27 [INFO] -------------------------------------------------
13:48:27 [INFO] Preparing start region for level 0 (Seed: -9211645123812070254)
13:48:28 [INFO] Preparing start region for level 1 (Seed: -9211645123812070254)
13:48:28 [INFO] Preparing start region for level 2 (Seed: -9211645123812070254)
13:48:28 [INFO] [WorldEdit] Enabling WorldEdit v18-b1ca6bc
13:48:28 [INFO] WEPIF: Using the Bukkit Permissions API.
13:48:28 [INFO] Server permissions file permissions.yml is empty, ignoring it
13:48:29 [INFO] Done (1.164s)! For help, type "help" or "?"
13:48:36 [INFO] iarspider[/127.0.0.1:37301] logged in with entity id 340 at ([world] -135.5, 66.0, 262.5)
13:49:18 [INFO] iarspider issued server command: /give iarspider 44 1 3
13:49:18 [INFO] iarspider: Gave iarspider some 44 (STEP)
13:49:26 [INFO] iarspider issued server command: //set 44:3
13:56:29 [INFO] iarspider issued server command: /give iarspider 44
13:56:29 [INFO] iarspider: Gave iarspider some 44 (STEP)
13:56:32 [INFO] iarspider issued server command: //set 44:3
{cut}
{cut WorldEdit config.yml}
limits:
allow-extra-data-values: false
max-blocks-changed:
default: -1
maximum: -1
max-polygonal-points:
default: -1
maximum: 20
max-radius: -1
max-super-pickaxe-size: 5
max-brush-radius: 5
butcher-radius:
default: -1
maximum: -1
disallowed-blocks: [6, 7, 14, 15, 16, 26, 27, 28, 29, 39, 31, 32, 33, 34, 36, 37, 38, 39, 40, 46, 50, 51, 56, 59, 69, 73, 74, 75, 76, 77, 81, 83]

use-inventory:
enable: true
allow-override: false

logging:
log-commands: false
file: worldedit.log

super-pickaxe:
drop-items: true
many-drop-items: false

snapshots:
directory:

navigation-wand:
item: 345
max-distance: 100

scripting:
timeout: 3000
dir: craftscripts

saving:
dir: schematics

files:
allow-symbolic-links: false

history:
size: 15
expiration: 10

wand-item: 271
shell-save-type:
no-double-slash: false
no-op-permissions: false
debug: false
{cut}