summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Server/crafting.txt2
-rw-r--r--Server/furnace.txt2
-rw-r--r--Server/items.ini450
-rw-r--r--Tools/ProtoProxy/Globals.h49
-rw-r--r--Tools/QtBiomeVisualiser/Globals.h20
-rw-r--r--Tools/RCONClient/Globals.h32
-rw-r--r--Tools/ToLuaDoxy/Globals.h16
-rw-r--r--src/HTTPServer/HTTPMessage.h2
-rw-r--r--src/Items/CMakeLists.txt1
-rw-r--r--src/Items/ItemBottle.h95
-rw-r--r--src/Items/ItemHandler.cpp2
11 files changed, 545 insertions, 126 deletions
diff --git a/Server/crafting.txt b/Server/crafting.txt
index 312009993..efbb1016a 100644
--- a/Server/crafting.txt
+++ b/Server/crafting.txt
@@ -72,7 +72,7 @@ EmeraldBlock = Emerald, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3
RedstoneBlock = RedstoneDust, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3
CoalBlock = Coal, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3
QuartzBlock = NetherQuartz, 1:1, 1:2, 2:1, 2:2
-NetherBrick = netherbrickitem, 1:1, 1:2, 2:1, 2:2
+NetherBrickBlock = NetherBrick, 1:1, 1:2, 2:1, 2:2
Glowstone = GlowstoneDust, 1:1, 1:2, 2:1, 2:2
Wool = String, 1:1, 1:2, 2:1, 2:2
TNT = Gunpowder, 1:1, 3:1, 2:2, 1:3, 3:3 | Sand, 2:1, 1:2, 3:2, 2:3
diff --git a/Server/furnace.txt b/Server/furnace.txt
index 24bc35bc8..764020cb4 100644
--- a/Server/furnace.txt
+++ b/Server/furnace.txt
@@ -53,7 +53,7 @@ Potato = BakedPotato
RawChicken = CookedChicken
Clay = Brick
ClayBlock = HardenedClay
-Netherrack = NetherBrickItem
+Netherrack = NetherBrick
RawFish = CookedFish
Log = CharCoal
DarkOakLog = CharCoal
diff --git a/Server/items.ini b/Server/items.ini
index 5eb04619c..eefbec8af 100644
--- a/Server/items.ini
+++ b/Server/items.ini
@@ -47,11 +47,13 @@ roofedoaksapling=6:5
bedrock=7
adminium=7
water=8
+flowing_water=8
flowingwater=8
stationarywater=9
stillwater=9
swater=9
lava=10
+flowing_lava=10
flowinglava=10
stationarylava=11
stilllava=11
@@ -59,8 +61,11 @@ slava=11
sand=12
redsand=12:1
gravel=13
+gold_ore=14
goldore=14
+iron_ore=15
ironore=15
+coal_ore=16
coalore=16
log=17
tree=17
@@ -86,7 +91,9 @@ jungleleaves=18:3
sponge=19
wetsponge=19:1
glass=20
+lapis_ore=21
lapisore=21
+lapis_block=22
lapisblock=22
dispenser=23
sandstone=24
@@ -96,17 +103,23 @@ decorativesandstone=24:1
ornamentsandstone=24:1
smoothsandstone=24:2
noteblock=25
+bed_block=26
bedblock=26
+golden_rail=27
+goldenrail=27
poweredrail=27
+detector_rail=28
detectorrail=28
+sticky_piston=29
stickypiston=29
+web=30
cobweb=30
tallgrass=31
tallgrassone=31:1
tallgrasstwo=31:2
deadbush=32
piston=33
-pistonextension=34
+piston_head=34
pistonhead=34
wool=35
cloth=35
@@ -144,8 +157,14 @@ darkgreenwool=35:13
dkgreenwool=35:13
redwool=35:14
blackwool=35:15
+piston_extension=36
+pistonextension=36
+yellow_flower=37
+yellowflower=37
dandelion=37
poppy=38
+red_flower=38
+redflower=38
rose=38
flower=38
blueorchid=38:1
@@ -156,12 +175,18 @@ orangetulip=38:5
whitetulip=38:6
pinktulip=38:7
oxeyedaisy=38:8
+brown_mushroom=39
brownmushroom=39
+red_mushroom=40
redmushroom=40
+gold_block=41
goldblock=41
gold=41
+iron_block=42
ironblock=42
iron=42
+double_stone_slab=43
+doublestoneslab=43
doubleslab=43
doublestep=43
stonedoubleslab=43:0
@@ -172,8 +197,11 @@ brickdoubleslab=43:4
stonebrickdoubleslab=43:5
netherbrickdoubleslab=43:6
quartzdoubleslab=43:7
+smoothstonedoubleslab=43:8
+smoothsandstonedoubleslab=43:9
slab=44
step=44
+stone_slab=44
stoneslab=44:0
sandstoneslab=44:1
woodslab=44:2
@@ -182,34 +210,51 @@ brickslab=44:4
stonebrickslab=44:5
netherbrickslab=44:6
quartzslab=44:7
+brick_block=45
brickblock=45
brickwall=45
tnt=46
bookshelf=47
bookcase=47
+mossy_cobblestone=48
mossycobblestone=48
mossy=48
obsidian=49
torch=50
fire=51
+mob_spawner=52
mobspawner=52
+oak_stairs=53
+oakstairs=53
oakwoodstairs=53
woodstairs=53
chest=54
+redstone_wire=55
redstonewire=55
redstonedust=55
+diamond_ore=56
diamondore=56
+diamond_block=57
diamondblock=57
+crafting_table=58
+craftingtable=58
workbench=58
crop=59
crops=59
+wheat_block=59
+wheatblock=59
farmland=60
tilleddirt=60
soil=60
furnace=61
+lit_furnace=62
litfurnace=62
+standing_sign=63
+standingsign=63
signblock=63
wooddoorblock=64
+wooden_door_block=64
+woodendoorblock=64
ladder=65
rails=66
rail=66
@@ -217,30 +262,50 @@ track=66
tracks=66
cobblestonestairs=67
stairs=67
+stone_stairs=67
+stonestairs=67
+wall_sign=68
wallsign=68
signblocktop=68
lever=69
stoneplate=70
+stone_pressure_plate=70
+stonepressureplate=70
rockplate=70
irondoorblock=71
+wooden_pressure_plate=72
+woodenpressureplate=72
woodplate=72
+redstone_ore=73
redstoneore=73
+lit_redstone_ore=74
+litredstoneore=74
redstoneorealt=74
redstonetorchoff=75
+unlit_redstone_torch=75
+unlitredstonetorch=75
+redstone_torch=76
+redstonetorch=76
redstonetorchon=76
+stone_button=77
stonebutton=77
-snow=78
+snow_layer=78
+snowlayer=78
ice=79
+snow=80
snowblock=80
cactus=81
clayblock=82
reedblock=83
+reeds_block=83
+reedsblock=83
jukebox=84
fence=85
pumpkin=86
netherrack=87
hellrock=87
netherstone=87
+soul_sand=88
soulsand=88
slowsand=88
glowstone=89
@@ -248,7 +313,18 @@ lightstone=89
portal=90
jackolantern=91
jacko=91
+lit_pumpkin=91
+litpumpkin=91
+cake=92
cakeblock=92
+redstonerepeateron=93
+unpowered_repeater=93
+unpoweredrepeater=93
+powered_repeater=94
+poweredrepeater=94
+redstonerepeateroff=94
+stained_glass=95
+stainedglass=95
whitestainedglass=95
orangestainedglass=95:1
magentastainedglass=95:2
@@ -283,40 +359,72 @@ dkgreenstainedglass=95:13
redstainedglass=95:14
blackstainedglass=95:15
trapdoor=96
+monster_egg=97
+monsteregg=97
silverfishblock=97
stonebrick=98
stonebricks=98
mossystonebrick=98:1
crackedstonebrick=98:2
chiseledstonebrick=98:3
+brown_mushroom_block=99
+brownmushroomblock=99
hugebrownmushroom=99
hugeredmushroom=100
+red_mushroom_block=100
+redmushroomblock=100
+iron_bars=101
ironbars=101
+glass_pane=102
glasspane=102
-melon=103
+melon_block=103
+melonblock=103
+pumpkin_stem=104
pumpkinstem=104
+melon_stem=105
melonstem=105
+vine=106
vines=106
+fence_gate=107
fencegate=107
+brick_stairs=108
brickstairs=108
+stone_brick_stairs=109
stonebrickstairs=109
mycelium=110
lilypad=111
-netherbrick=112
+waterlily=111
+nether_brick_block=112
+netherbrickblock=112
+nether_brick_fence=113
netherbrickfence=113
+nether_brick_stairs=114
netherbrickstairs=114
+nether_wart_block=115
netherwartblock=115
+enchanting_table=116
+enchantingtable=116
enchantmenttable=116
+brewing_stand_block=117
brewingstandblock=117
+cauldron_block=118
cauldronblock=118
+end_portal=119
endportal=119
+end_portal_frame=120
endportalframe=120
+end_stone=121
endstone=121
+dragon_egg=122
dragonegg=122
+redstone_lamp=123
redstonelamp=123
redstonelampoff=123
+lit_redstone_lamp=124
litredstonelamp=124
redstonelampon=124
+double_wooden_slab=125
+doublewoodenslab=125
woodendoubleslab=125
oakwooddoubleslab=125:0
appledoublewoodslab=125:0
@@ -331,6 +439,7 @@ acaciawooddoubleslab=125:4
darkoakwooddoubleslab=125:5
bigoakwooddoubleslab=125:5
roofedwooddoubleslab=125:5
+wooden_slab=126
woodenslab=126
oakwoodslab=126:0
applewoodslab=126:0
@@ -345,29 +454,48 @@ acaciawoodslab=126:4
darkoakwoodslab=126:5
roofedwoodslab=126:5
bigoakwoodslab=126:5
-cocoabeans=127
+cocoa=127
+sandstone_stairs=128
sandstonestairs=128
+emerald_ore=129
emeraldore=129
+ender_chest=130
enderchest=130
+tripwire_hook=131
tripwirehook=131
tripwire=132
+emerald_block=133
emeraldblock=133
+spruce_stairs=134
+sprucestairs=134
sprucewoodstairs=134
coniferwoodstairs=134
pinewoodstairs=134
darkwoodstairs=134
+birch_stairs=135
+birchstairs=135
birchwoodstairs=135
whitewoodstairs=135
+jungle_stairs=136
+junglestairs=136
junglewoodstairs=136
+command_block=137
commandblock=137
beacon=138
+cobblestone_wall=139
cobblestonewall=139
mossycobblestonewall=139:1
+flower_pot_block=140
flowerpotblock=140
+carrots=141
carrotcrop=141
+potatoes=142
potatocrop=142
+wooden_button=143
woodenbutton=143
skeletonhead=144
+skull_block=144
+skullblock=144
witherhead=144:1
zombiehead=144:2
playerhead=144:3
@@ -375,21 +503,40 @@ humanhead=144:3
stevehead=144:3
creeperhead=144:4
anvil=145
+slightlydamagedanvil=145:1
+verydamagedanvil=145:2
+trapped_chest=146
trappedchest=146
+light_weighted_pressure_plate=147
lightweightedpressureplate=147
+heavy_weighted_pressure_plate=148
heavyweightedpressureplate=148
inactivecomparator=149
+unpowered_comparator=149
+unpoweredcomparator=149
activecomparator=150
+powered_comparator=150
+poweredcomparator=150
+daylight_detector=151
+daylightdetector=151
daylightsensor=151
+redstone_block=152
redstoneblock=152
netherquartzore=153
+quartz_ore=153
+quartzore=153
hopper=154
+quartz_block=155
quartzblock=155
chiseledquartzblock=155:1
pillarquartzblock=155:2
+quartz_stairs=156
quartzstairs=156
+activator_rail=157
activatorrail=157
dropper=158
+stained_hardened_clay=159
+stainedhardenedclay=159
whitestainedclay=159
orangestainedclay=159:1
magentastainedclay=159:2
@@ -423,6 +570,8 @@ darkgreenstainedclay=159:13
dkgreenstainedclay=159:13
redstainedclay=159:14
blackstainedclay=159:15
+stained_glass_pane=160
+stainedglasspane=160
whitestainedglasspane=160
orangestainedglasspane=160:1
magentastainedglasspane=160:2
@@ -456,27 +605,39 @@ darkgreenstainedglasspane=160:13
dkgreenstainedglasspane=160:13
redstainedglasspane=160:14
blackstainedglasspane=160:15
+leaves2=161
newleaves=161
acacialeaves=161:0
darkoakleaves=161:1
bigoakleaves=161:1
roofedoakleaves=161:1
+log2=162
newlog=162
acacialog=162:0
darkoaklog=162:1
bigoaklog=162:1
roofedoaklog=162:1
+acacia_stairs=163
+acaciastairs=163
acaciawoodstairs=163
+dark_oak_stairs=164
+darkoakstairs=164
darkoakwoodstairs=164
bigoakwoodstiars=164
roofedoakwoodstairs=164
+slime=165
+slime_block=165
slimeblock=165
barrier=166
+iron_trapdoor=167
irontrapdoor=167
prismarine=168
prismarinebricks=168:1
darkprismarine=168:2
+sea_lantern=169
sealantern=169
+hay_block=170
+hayblock=170
haybale=170
carpet=171
whitecarpet=171:0
@@ -512,9 +673,13 @@ darkgreencarpet=171:13
dkgreencarpet=171:13
redcarpet=171:14
blackcarpet=171:15
+hardened_clay=172
hardenedclay=172
+coal_block=173
coalblock=173
+packed_ice=174
packedice=174
+double_plant=175
doubleplant=175
sunflower=175:0
lilac=175:1
@@ -522,39 +687,76 @@ doubletallgrass=175:2
doubletallfern=175:3
rosebush=175:4
peony=175:5
+standing_banner=176
+standingbanner=176
+wall_banner=177
+wallbanner=177
+daylight_detector_inverted=178
+daylightdetectorinverted=178
+red_sandstone=179
redsandstone=179
chiseledredsandstone=179:1
smoothredsandstone=179:2
+red_sandstone_stairs=180
redsandstonestairs=180
+double_stone_slab2=181
+doublestoneslab2=181
+redsandstonedoubleslab=181
newstoneslab=182
+stone_slab2=182
+stoneslab2=182
redsandstoneslab=182:0
+spruce_fence_gate=183
sprucefencegate=183
coniferfencegate=183
pinefencegate=183
darkfencegate=183
+birch_fence_gate=184
birchfencegate=184
whitefencegate=184
+jungle_fence_gate=185
junglefencegate=185
+dark_oak_fence_gate=186
darkoakfencegate=186
bigoakfencegate=186
roofedoakfencegate=186
+acacia_fence_gate=187
acaciafencegate=187
+spruce_fence=188
sprucefence=188
coniferfence=188
pinefence=188
darkfence=188
+birch_fence=189
birchfence=189
whitefence=189
+jungle_fence=190
junglefence=190
+dark_oak_fence=191
darkoakfence=191
bigoakfence=191
roofedoakfence=191
+acacia_fence=192
acaciafence=192
+spruce_door_block=193
+sprucedoorblock=193
+birch_door_block=194
+birchdoorblock=194
+jungle_door_block=195
+jungledoorblock=195
+acacia_door_block=196
+acaciadoorblock=196
+dark_oak_door_block=197
+darkoakdoorblock=197
+iron_shovel=256
ironshovel=256
ironspade=256
+iron_pickaxe=257
ironpickaxe=257
ironpick=257
+iron_axe=258
ironaxe=258
+flint_and_steel=259
flintandsteel=259
lighter=259
apple=260
@@ -564,101 +766,155 @@ arrow=262
coal=263
charcoal=263:1
diamond=264
+iron_ingot=265
ironingot=265
ironbar=265
+gold_ingot=266
goldingot=266
goldeningot=266
goldbar=266
goldenbar=266
+iron_sword=267
ironsword=267
+wooden_sword=268
woodensword=268
woodsword=268
+wooden_shovel=269
woodenshovel=269
woodspade=269
woodshovel=269
woodenspade=269
+wooden_pickaxe=270
woodenpickaxe=270
woodpickaxe=270
woodenpick=270
woodpick=270
+wooden_axe=271
woodenaxe=271
woodaxe=271
+stone_sword=272
stonesword=272
+stone_shovel=273
stoneshovel=273
stonespade=273
+stone_pickaxe=274
stonepickaxe=274
stonepick=274
+stone_axe=275
stoneaxe=275
+diamond_sword=276
diamondsword=276
+diamond_shovel=277
diamondshovel=277
diamondspade=277
+diamond_pickaxe=278
diamondpickaxe=278
diamondpick=278
+diamond_axe=279
diamondaxe=279
stick=280
bowl=281
+mushroom_stew=282
mushroomstew=282
bowlwithsoup=282
soupbowl=282
soup=282
+golden_sword=283
goldensword=283
goldsword=283
+golden_shovel=284
goldenshovel=284
goldenspade=284
goldshovel=284
goldspade=284
+golden_pickaxe=285
goldenpickaxe=285
goldpickaxe=285
goldenpick=285
goldpick=285
+golden_axe=286
goldenaxe=286
goldaxe=286
string=287
feather=288
gunpowder=289
+wooden_hoe=290
woodenhoe=290
woodhoe=290
+stone_hoe=291
stonehoe=291
+iron_hoe=292
ironhoe=292
+diamond_hoe=293
diamondhoe=293
+golden_hoe=294
goldenhoe=294
goldhoe=294
seeds=295
+wheat_seeds=295
+wheatseeds=295
wheat=296
bread=297
+leather_helmet=298
leatherhelmet=298
+leather_chestplate=299
leatherchestplate=299
+leather_leggings=300
+leatherleggings=300
leatherpants=300
+leather_boots=301
leatherboots=301
+chainmail_helmet=302
chainmailhelmet=302
+chainmail_chestplate=303
chainmailchestplate=303
+chainmain_leggings=304
+chainmailleggings=304
chainmailpants=304
+chainmail_boots=305
chainmailboots=305
+iron_helmet=306
ironhelmet=306
+iron_chestplate=307
ironchestplate=307
+iron_leggings=308
+ironleggings=308
ironpants=308
+iron_boots=309
ironboots=309
+diamond_helmet=310
diamondhelmet=310
+diamond_chestplate=311
diamondchestplate=311
+diamond_leggings=312
+diamondleggings=312
diamondpants=312
+diamond_boots=313
diamondboots=313
+golden_helmet=314
goldenhelmet=314
goldhelmet=314
+golden_chestplate=315
goldenchestplate=315
goldchestplate=315
+golden_leggings=316
+goldenleggings=316
goldenpants=316
goldpants=316
+golden_boots=317
goldenboots=317
goldboots=317
flint=318
porkchop=319
meat=319
pork=319
+cooked_porkchop=320
cookedporkchop=320
cookedmeat=320
cookedpork=320
painting=321
paintings=321
+golden_apple=322
goldenapple=322
goldapple=322
notchapple=322:1
@@ -667,33 +923,49 @@ enchantedgoldapple=322:1
sign=323
oakdoor=324
appledoor=324
+wooden_door=324
woodendoor=324
wooddoor=324
bucket=325
+water_bucket=326
waterbucket=326
+lava_bucket=327
lavabucket=327
minecart=328
saddle=329
+iron_door=330
irondoor=330
+redstone=331
redstonedust=331
snowball=332
boat=333
leather=334
+milk_bucket=335
milkbucket=335
brick=336
clay=337
+clay_ball=337
+clayball=337
sugarcane=338
reed=338
+reeds=338
paper=339
book=340
slimeball=341
slimeorb=341
+chest_minecart=342
+chestminecart=342
storageminecart=342
+furnace_minecart=343
+furnaceminecart=343
poweredminecart=343
egg=344
compass=345
+fishing_rod=346
fishingrod=346
+clock=347
watch=347
+glowstone_dust=348
glowstonedust=348
lightstonedust=348
lightdust=348
@@ -704,6 +976,8 @@ rawsalmon=349:1
clownfish=349:2
pufferfish=349:3
cookedfish=350
+cooked_fished=350
+cookedfished=350
cookedsalmon=350:1
dye=351
inksac=351:0
@@ -753,135 +1027,231 @@ bed=355
repeater=356
diode=356
cookie=357
-map=358
+filled_map=358
+filledmap=358
shears=359
+melon=360
melonslice=360
+pumpkin_seeds=361
pumpkinseeds=361
+melon_seeds=362
melonseeds=362
+beef=363
rawbeef=363
+cooked_beef=364
+cookedbeef=364
steak=364
+chicken=365
rawchicken=365
+cooked_chicken=366
cookedchicken=366
+rotten_flesh=367
rottenflesh=367
+ender_pearl=368
enderpearl=368
+blaze_rod=369
blazerod=369
+ghast_tear=370
ghasttear=370
+gold_nugget=371
goldnugget=371
+nether_wart=372
netherwart=372
potion=373
+glass_bottle=374
glassbottle=374
+spider_eye=374
spidereye=375
+fermented_spider_eye=376
fermentedspidereye=376
+blaze_powder=377
blazepowder=377
+magma_cream=378
magmacream=378
+brewing_stand=379
brewingstand=379
cauldron=380
+ender_eye=381
+endereye=381
eyeofender=381
glisteringmelon=382
+speckled_melon=382
+speckledmelon=382
+spawn_egg=383
spawnegg=383
bottleoenchanting=384
+experience_bottle=384
+experiencebottle=384
+fire_charge=385
firecharge=385
bookandquill=386
+writable_book=386
+writablebook=386
+written_book=387
writtenbook=387
emerald=388
+item_frame=389
itemframe=389
+flower_pot=390
flowerpot=390
carrot=391
potato=392
+baked_potato=393
bakedpotato=393
+poisonous_potato=394
poisonouspotato=394
emptymap=395
+map=395
+golden_carrot=396
goldencarrot=396
skeletonhead=397
+skull=397
witherhead=397:1
zombiehead=397:2
playerhead=397:3
stevehead=397:3
creeperhead=397:4
+carrot_on_a_stick=398
carrotonastick=398
+nether_star=399
netherstar=399
+pumpkin_pie=400
pumpkinpie=400
fireworkrocket=401
+fireworks=401
+firework_charge=402
+fireworkcharge=402
fireworkstar=402
+enchanted_book=403
enchantedbook=403
comparator=404
-netherbrickitem=405
+netherbrick=405
netherquartz=406
+quartz=406
+tnt_minecart=407
tntminecart=407
+hopper_minecart=408
hopperminecart=408
+prismarine_shard=409
prismarineshard=409
+prismarine_crystals=410
prismarinecrystals=410
+rabbit=410
rawrabbit=411
+cooked_rabbit=412
cookedrabbit=412
+rabbit_stew=413
rabbitstew=413
rabbitsoup=413
+rabbit_foot=414
+rabbitfoot=414
rabbitsfoot=414
+rabbit_hide=415
rabbithide=415
+armor_stand=416
armorstand=416
+iron_horse_armor=417
ironhorsearmor=417
+golden_horse_armor=418
+goldenhorsearmor=418
goldhorsearmor=418
+diamond_horse_armor=419
diamondhorsearmor=419
lead=420
+name_tag=421
nametag=421
+command_block_minecart=422
commandblockminecart=422
+mutton=423
rawmutton=423
+cooked_mutton=424
cookedmutton=424
banner=425
-blackbanner=415:0
-redbanner=415:1
-greenbanner=415:2
-darkgreenbanner=415:2
-dkgreenbanner=415:2
-brownbanner=415:3
-bluebanner=415:4
-darkbluebanner=415:4
-dkbluebanner=415:4
-purplebanner=415:5
-violetbanner=415:5
-cyanbanner=415:6
-lightgraybanner=415:7
-lightgreybanner=415:7
-ltgraybanner=415:7
-ltgreybanner=415:7
-silverbanner=415:7
-graybanner=415:8
-greybanner=415:8
-darkgraybanner=415:8
-darkgreybanner=415:8
-dkgraybanner=415:8
-dkgreybanner=415:8
-pinkbanner=415:9
-limebanner=415:10
-lightgreenbanner=415:10
-ltgreenbanner=415:10
-yellowbanner=415:11
-lightbluebanner=415:12
-ltbluebanner=415:12
-magentabanner=415:13
-orangebanner=415:14
-whitebanner=415:15
+blackbanner=425:0
+redbanner=425:1
+greenbanner=425:2
+darkgreenbanner=425:2
+dkgreenbanner=425:2
+brownbanner=425:3
+bluebanner=425:4
+darkbluebanner=425:4
+dkbluebanner=425:4
+purplebanner=425:5
+violetbanner=425:5
+cyanbanner=425:6
+lightgraybanner=425:7
+lightgreybanner=425:7
+ltgraybanner=425:7
+ltgreybanner=425:7
+silverbanner=425:7
+graybanner=425:8
+greybanner=425:8
+darkgraybanner=425:8
+darkgreybanner=425:8
+dkgraybanner=425:8
+dkgreybanner=425:8
+pinkbanner=425:9
+limebanner=425:10
+lightgreenbanner=425:10
+ltgreenbanner=425:10
+yellowbanner=425:11
+lightbluebanner=425:12
+ltbluebanner=425:12
+magentabanner=425:13
+orangebanner=425:14
+whitebanner=425:15
+spruce_door=427
sprucedoor=427
coniferdoor=427
pinedoor=427
darkdoor=427
+birch_door=428
birchdoor=428
whitedoor=428
+jungle_door=429
jungledoor=429
+acacia_door=430
acaciadoor=430
+dark_oak_door=431
darkoakdoor=431
bigoakdoor=431
roofedoakdoor=431
goldrecord=2256
+record_13=2256
+record13=2256
greenrecord=2257
+record_cat=2257
+recordcat=2257
blocksrecord=2258
+record_blocks=2258
+recordblocks=2258
chirprecord=2259
+record_chirp=2259
+recordchirp=2259
farrecord=2260
+record_far=2260
+recordfar=2260
mallrecord=2261
+record_mall=2261
+recordmall=2261
mellohirecord=2262
+record_mellohi=2262
+recordmellohi=2262
+record_stal=2263
+recordstal=2263
stalrecord=2263
+record_strad=2264
+recordstrad=2264
stradrecord=2264
+record_ward=2265
+recordward=2265
wardrecord=2265
11record=2266
+record_11=2266
+record11=2266
+record_wait=2267
+recordwait=2267
+
diff --git a/Tools/ProtoProxy/Globals.h b/Tools/ProtoProxy/Globals.h
index efc0a9988..c69931bd5 100644
--- a/Tools/ProtoProxy/Globals.h
+++ b/Tools/ProtoProxy/Globals.h
@@ -12,26 +12,26 @@
#if defined(_MSC_VER)
// MSVC produces warning C4481 on the override keyword usage, so disable the warning altogether
#pragma warning(disable:4481)
-
+
// Disable some warnings that we don't care about:
#pragma warning(disable:4100)
#define OBSOLETE __declspec(deprecated)
-
+
// No alignment needed in MSVC
#define ALIGN_8
#define ALIGN_16
-
+
#define FORMATSTRING(formatIndex, va_argsIndex)
#elif defined(__GNUC__)
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
#define abstract
-
+
// TODO: Can GCC mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
-
+
#define OBSOLETE __attribute__((deprecated))
#define ALIGN_8 __attribute__((aligned(8)))
@@ -39,19 +39,19 @@
// Some portability macros :)
#define stricmp strcasecmp
-
+
#define FORMATSTRING(formatIndex, va_argsIndex)
#else
#error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler"
-
+
/*
// Copy and uncomment this into another #elif section based on your compiler identification
-
+
// Explicitly mark classes as abstract (no instances can be created)
#define abstract
-
+
// Mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
@@ -107,16 +107,16 @@ typedef unsigned char Byte;
#include <Windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
-
+
// Windows SDK defines min and max macros, messing up with our std::min and std::max usage
#undef min
#undef max
-
+
// Windows SDK defines GetFreeSpace as a constant, probably a Win16 API remnant
#ifdef GetFreeSpace
#undef GetFreeSpace
#endif // GetFreeSpace
-
+
#define SocketError WSAGetLastError()
#else
#include <sys/types.h>
@@ -138,7 +138,7 @@ typedef unsigned char Byte;
#include <semaphore.h>
#include <errno.h>
#include <fcntl.h>
-
+
typedef int SOCKET;
enum
{
@@ -146,9 +146,6 @@ typedef unsigned char Byte;
};
#define closesocket close
#define SocketError errno
-#if !defined(ANDROID_NDK)
- #include <tr1/memory>
-#endif
#endif
#if !defined(ANDROID_NDK)
@@ -218,19 +215,9 @@ typedef unsigned char Byte;
// Pretty much the same as ASSERT() but stays in Release builds
#define VERIFY( x ) ( !!(x) || ( LOGERROR("Verification failed: %s, file %s, line %i", #x, __FILE__, __LINE__ ), exit(1), 0 ) )
-// Allow both Older versions of MSVC and newer versions of everything use a shared_ptr:
-// Note that we cannot typedef, because C++ doesn't allow (partial) templates to be typedeffed.
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
- // MSVC before 2010 doesn't have std::shared_ptr, but has std::tr1::shared_ptr, defined in <memory> included earlier
- #define SharedPtr std::tr1::shared_ptr
-#elif (defined(_MSC_VER) || (__cplusplus >= 201103L))
- // C++11 has std::shared_ptr in <memory>, included earlier
- #define SharedPtr std::shared_ptr
-#else
- // C++03 has std::tr1::shared_ptr in <tr1/memory>
- #include <tr1/memory>
- #define SharedPtr std::tr1::shared_ptr
-#endif
+// C++11 has std::shared_ptr in <memory>, included earlier
+#define SharedPtr std::shared_ptr
+
@@ -243,7 +230,3 @@ public:
/// Called for each item in the internal list; return true to stop the loop, or false to continue enumerating
virtual bool Item(Type * a_Type) = 0;
} ;
-
-
-
-
diff --git a/Tools/QtBiomeVisualiser/Globals.h b/Tools/QtBiomeVisualiser/Globals.h
index cc90f9383..d73881868 100644
--- a/Tools/QtBiomeVisualiser/Globals.h
+++ b/Tools/QtBiomeVisualiser/Globals.h
@@ -330,19 +330,8 @@ void inline LOGERROR(const char* a_Format, ...)
#define assert_test(x) ( !!(x) || (assert(!#x), exit(1), 0))
#endif
-// Allow both Older versions of MSVC and newer versions of everything use a shared_ptr:
-// Note that we cannot typedef, because C++ doesn't allow (partial) templates to be typedeffed.
-#if (defined(_MSC_VER) && (_MSC_VER < 1600))
- // MSVC before 2010 doesn't have std::shared_ptr, but has std::tr1::shared_ptr, defined in <memory> included earlier
- #define SharedPtr std::tr1::shared_ptr
-#elif (defined(_MSC_VER) || (__cplusplus >= 201103L))
- // C++11 has std::shared_ptr in <memory>, included earlier
- #define SharedPtr std::shared_ptr
-#else
- // C++03 has std::tr1::shared_ptr in <tr1/memory>
- #include <tr1/memory>
- #define SharedPtr std::tr1::shared_ptr
-#endif
+// C++11 has std::shared_ptr in <memory>, included earlier
+#define SharedPtr std::shared_ptr
@@ -385,8 +374,3 @@ T Clamp(T a_Value, T a_Min, T a_Max)
#include "src/BiomeDef.h"
#include "src/BlockID.h"
#include "src/BlockInfo.h"
-
-
-
-
-
diff --git a/Tools/RCONClient/Globals.h b/Tools/RCONClient/Globals.h
index dc7669270..b9b1519e3 100644
--- a/Tools/RCONClient/Globals.h
+++ b/Tools/RCONClient/Globals.h
@@ -12,23 +12,23 @@
#if defined(_MSC_VER)
// MSVC produces warning C4481 on the override keyword usage, so disable the warning altogether
#pragma warning(disable:4481)
-
+
// Disable some warnings that we don't care about:
#pragma warning(disable:4100)
#define OBSOLETE __declspec(deprecated)
-
+
// No alignment needed in MSVC
#define ALIGN_8
#define ALIGN_16
-
+
#define FORMATSTRING(formatIndex, va_argsIndex)
// MSVC has its own custom version of zu format
#define SIZE_T_FMT "%Iu"
#define SIZE_T_FMT_PRECISION(x) "%" #x "Iu"
#define SIZE_T_FMT_HEX "%Ix"
-
+
#define NORETURN __declspec(noreturn)
// Use non-standard defines in <cmath>
@@ -38,10 +38,10 @@
// TODO: Can GCC explicitly mark classes as abstract (no instances can be created)?
#define abstract
-
+
// TODO: Can GCC mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
-
+
#define OBSOLETE __attribute__((deprecated))
#define ALIGN_8 __attribute__((aligned(8)))
@@ -70,19 +70,19 @@
#define SIZE_T_FMT_PRECISION(x) "%" #x "zu"
#define SIZE_T_FMT_HEX "%zx"
#endif
-
+
#define NORETURN __attribute((__noreturn__))
#else
#error "You are using an unsupported compiler, you might need to #define some stuff here for your compiler"
-
+
/*
// Copy and uncomment this into another #elif section based on your compiler identification
-
+
// Explicitly mark classes as abstract (no instances can be created)
#define abstract
-
+
// Mark virtual methods as overriding (forcing them to have a virtual function of the same signature in the base class)
#define override
@@ -136,11 +136,11 @@ typedef unsigned char Byte;
#include <Windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h> // IPv6 stuff
-
+
// Windows SDK defines min and max macros, messing up with our std::min and std::max usage
#undef min
#undef max
-
+
// Windows SDK defines GetFreeSpace as a constant, probably a Win16 API remnant
#ifdef GetFreeSpace
#undef GetFreeSpace
@@ -164,9 +164,6 @@ typedef unsigned char Byte;
#include <semaphore.h>
#include <errno.h>
#include <fcntl.h>
-#if !defined(ANDROID_NDK)
- #include <tr1/memory>
-#endif
#endif
#if !defined(ANDROID_NDK)
@@ -239,8 +236,3 @@ typedef unsigned char Byte;
// Pretty much the same as ASSERT() but stays in Release builds
#define VERIFY( x ) ( !!(x) || ( LOGERROR("Verification failed: %s, file %s, line %i", #x, __FILE__, __LINE__ ), exit(1), 0 ) )
-
-
-
-
-
diff --git a/Tools/ToLuaDoxy/Globals.h b/Tools/ToLuaDoxy/Globals.h
index b9100a297..869cf0afd 100644
--- a/Tools/ToLuaDoxy/Globals.h
+++ b/Tools/ToLuaDoxy/Globals.h
@@ -9,17 +9,17 @@
// OS-dependent stuff:
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
-
+
#define _WIN32_WINNT 0x501 // We want to target WinXP and higher
-
+
#include <Windows.h>
#include <winsock2.h>
#include <Ws2tcpip.h> // IPv6 stuff
-
+
// Windows SDK defines min and max macros, messing up with our std::min and std::max usage
#undef min
#undef max
-
+
// Windows SDK defines GetFreeSpace as a constant, probably a Win16 API remnant
#ifdef GetFreeSpace
#undef GetFreeSpace
@@ -43,10 +43,6 @@
#include <semaphore.h>
#include <errno.h>
#include <fcntl.h>
-
- #if !defined(ANDROID_NDK)
- #include <tr1/memory>
- #endif
#endif
@@ -95,7 +91,3 @@
#define MiB * 1024 * 1024
#define ASSERT assert
-
-
-
-
diff --git a/src/HTTPServer/HTTPMessage.h b/src/HTTPServer/HTTPMessage.h
index c0667030f..ff657a272 100644
--- a/src/HTTPServer/HTTPMessage.h
+++ b/src/HTTPServer/HTTPMessage.h
@@ -145,7 +145,7 @@ protected:
/** Parses the incoming data for the first line (RequestLine)
- Returns the number of bytes consumed, or -1 for an error
+ Returns the number of bytes consumed, or AString::npos for an error
*/
size_t ParseRequestLine(const char * a_Data, size_t a_Size);
diff --git a/src/Items/CMakeLists.txt b/src/Items/CMakeLists.txt
index a0910ea8a..2e719d1a6 100644
--- a/src/Items/CMakeLists.txt
+++ b/src/Items/CMakeLists.txt
@@ -13,6 +13,7 @@ SET (HDRS
ItemBed.h
ItemBigFlower.h
ItemBoat.h
+ ItemBottle.h
ItemBow.h
ItemBrewingStand.h
ItemBucket.h
diff --git a/src/Items/ItemBottle.h b/src/Items/ItemBottle.h
new file mode 100644
index 000000000..d2ca30def
--- /dev/null
+++ b/src/Items/ItemBottle.h
@@ -0,0 +1,95 @@
+
+#pragma once
+
+#include "ItemHandler.h"
+#include "../World.h"
+
+
+
+
+
+class cItemBottleHandler :
+ public cItemHandler
+{
+public:
+ cItemBottleHandler() :
+ cItemHandler(E_ITEM_GLASS_BOTTLE)
+ {
+ }
+
+
+ bool GetBlockFromTrace(cWorld * a_World, cPlayer * a_Player, Vector3i & a_BlockPos)
+ {
+ class cCallbacks :
+ public cBlockTracer::cCallbacks
+ {
+ public:
+ Vector3i m_Pos;
+ bool m_HasHitFluid;
+
+
+ cCallbacks(void) :
+ m_HasHitFluid(false)
+ {
+ }
+
+ virtual bool OnNextBlock(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, NIBBLETYPE a_BlockMeta, char a_EntryFace) override
+ {
+ if (IsBlockWater(a_BlockType))
+ {
+ if (a_BlockMeta != 0) // we're only looking for source blocks
+ {
+ return false;
+ }
+ m_HasHitFluid = true;
+ m_Pos.Set(a_BlockX, a_BlockY, a_BlockZ);
+ return true;
+ }
+ return false;
+ }
+ } Callbacks;
+
+ cLineBlockTracer Tracer(*a_World, Callbacks);
+ Vector3d Start(a_Player->GetEyePosition() + a_Player->GetLookVector());
+ Vector3d End(a_Player->GetEyePosition() + a_Player->GetLookVector() * 5);
+
+ Tracer.Trace(Start.x, Start.y, Start.z, End.x, End.y, End.z);
+
+ if (!Callbacks.m_HasHitFluid)
+ {
+ return false;
+ }
+
+
+ a_BlockPos = Callbacks.m_Pos;
+ return true;
+ }
+
+
+
+ virtual bool OnItemUse(
+ cWorld * a_World, cPlayer * a_Player, cBlockPluginInterface & a_PluginInterface, const cItem & a_Item,
+ int a_BlockX, int a_BlockY, int a_BlockZ, eBlockFace a_BlockFace
+ ) override
+ {
+ if (a_BlockFace != BLOCK_FACE_NONE)
+ {
+ return false;
+ }
+
+ Vector3i BlockPos;
+ if (!GetBlockFromTrace(a_World, a_Player, BlockPos))
+ {
+ return false; // Nothing in range.
+ }
+
+ a_Player->GetInventory().RemoveOneEquippedItem();
+ cItem NewItem(E_ITEM_POTION, 1, 0);
+ a_Player->GetInventory().AddItem(NewItem);
+ return true;
+ }
+} ;
+
+
+
+
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp
index 5ff3c84bf..5d088dfcd 100644
--- a/src/Items/ItemHandler.cpp
+++ b/src/Items/ItemHandler.cpp
@@ -13,6 +13,7 @@
#include "ItemBed.h"
#include "ItemBigFlower.h"
#include "ItemBoat.h"
+#include "ItemBottle.h"
#include "ItemBow.h"
#include "ItemBrewingStand.h"
#include "ItemBucket.h"
@@ -134,6 +135,7 @@ cItemHandler * cItemHandler::CreateItemHandler(int a_ItemType)
case E_ITEM_FISHING_ROD: return new cItemFishingRodHandler(a_ItemType);
case E_ITEM_FLINT_AND_STEEL: return new cItemLighterHandler(a_ItemType);
case E_ITEM_FLOWER_POT: return new cItemFlowerPotHandler(a_ItemType);
+ case E_ITEM_GLASS_BOTTLE: return new cItemBottleHandler();
case E_ITEM_GOLDEN_APPLE: return new cItemGoldenAppleHandler();
case E_ITEM_MAP: return new cItemMapHandler();
case E_ITEM_MILK: return new cItemMilkHandler();